Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/05/2011, 13:25
CWeeD
 
Fecha de Ingreso: octubre-2010
Mensajes: 136
Antigüedad: 13 años, 5 meses
Puntos: 4
Respuesta: javascript para redireccionar cuando den clic en un enlace

Esto es mas o menos a lo que te entiendo...talvez uno que otro detalle pero creo que esa es la idea a la que te refieres...
Código HTML:
<html>
<head>
<script type="text/javascript">
	
	var urls = new Array("http://www.google.com/", "http://www.yahoo.com/", "http://www.ask.com/");
	
	function redirect()
	{
		window.location = urls[Math.floor(urls.length*Math.random())];
	}
	
</script>
</head>
<body>
<input name="TEST" value="TEST" onclick="javascript:redirect()" type="button" />
</body>
</html> 
__________________
Ser o conocer ese es el dilema...