Jump to content

SCRIPT EPILEPSIA


Recommended Posts

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 by cañangasñangas
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...