cañangasñangas Posted July 31, 2013 Report Share Posted July 31, 2013 (edited) hola a todos, se supone que al cambiar rapidamente entre los colores, rojo, azul, y verde puede producir epilepsia, les traigo un sencillito script que hace exactamente eso. Aqui se los dejo: <html> <head> <script type="text/javascript"> function epilepsia(){ changer = document.getElementById("change"); where = parseInt(changer.getAttribute("where"))+1; if(where == 1){ col = "#ff0000"; } else if(where == 2){ col = "#00ff00"; } else if(where == 3){ col = "#0000ff"; where = 0; } changer.setAttribute("where", where); changer.style.backgroundColor=col; } setInterval("epilepsia();", 75); </script> </head> <body id="change" where="0" style="background-color:#ff0000;"> </body> </html> espero les guste. si a alguien le da epilepsia, me avisa porque a mi no me dio. Saludos :kicking: Edited July 31, 2013 by cañangasñangas Link to comment Share on other sites More sharing options...
bombero_7 Posted August 2, 2013 Report Share Posted August 2, 2013 jajaja me recuerda al capitulo de los simpsons xD Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now