Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/05/2010, 03:22
Avatar de Infernal
Infernal
 
Fecha de Ingreso: septiembre-2004
Ubicación: Tamaulipas, Mexico
Mensajes: 124
Antigüedad: 19 años, 8 meses
Puntos: 0
Respuesta: boton que te lleve a un sitio y en x tiempo se redirija a otro

se puede hacer algo asi con php, pero me parece mas factible con javascript.

Código Javascript:
Ver original
  1. <input type="button" id="envia" value="Ir a" />
  2.  
  3. boton = document.getElementById("envia");
  4. boton.onclick = function() {
  5.          window.location.href = "http://google.com/";
  6. };
  7.  
  8. // y en la pagina que quieres que te envie a otra
  9.  
  10. window.onload = function() {
  11.  
  12.            setTimeout(function(){   window.location.href = "http://google.com/";  }, 5000);
  13.  
  14. };