Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
¿Creando un efecto de matriz donde el número y las letras se repiten en la página web?

Mi objetivo es el siguiente: crear un encabezado html que itera constantemente a través de una matriz aleatoria de números completos y letras que crea un efecto similar a una "matriz" donde la palabra inicial en el documento html parece un bucle criptográfico.

 const alphabet = [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", 1, 2, 3, 4, 5, 6, 7, 8, 9, ]; let randomIndex = Math.floor(Math.random() * alphabet.length); hash.addEventListener("mouseover", function (randomIndex) { for (i = 0; i < Infinity; i++) { let randomItem = alphabet[randomIndex]; } hash.innerHTML = `${randomItem}`; });

Mi pregunta es a) ¿cómo reemplazo el elemento aleatorio recién generado con el siguiente valor que genera y b) hay alguna forma de hacerlo para que mi PC no falle? jajaja

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

requestAnimationFrame es la respuesta. Resulta que el ciclo iba tan rápido que no pude ver los cambios.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!