Redireccionamiento
Friday, 28 de November de 2008
Hoy realizaré mi segundo aporte real a la humanidad, les enseñaré unas cuantas formas de redireccionar a otro sitio web.
1° Mediante HTML Usando el elemento META inmediatamente
<html> <head> <meta http-equiv="acci" content="segundos"; url="www.creations.cl"/> </head> <body> </body> </html>
2° Mediante HTML Usando el elemento META con temporizador
<html> <head> <meta http-equiv="Refresh" content="5;url=www.creations.cl"> </head> <body> <p>Sitio no disponible serás redireccionado en cinco segundos.</p> </body> </html>
3° Mediante JavaScript Con temporizador
<html> <head> <script type="text/javascript"> function redir(){   window.locationf="http://www.creations.cl"; }  setTimeout ("redir()", 10000); //tiempo expresado en milisegundos </script> </head> <body> <p> Espere por favor, será redireccionado en 10 segundos.</p> </body> </html>
4° Mediante JavaScript De Forma Inmediata
<body> <script type="text/javascript"> window.location="http://www.creations.cl"; </script> </body>
5° Mediante PHP
<?phpÂ
header ("Location: http://www.creations.cl");Â
?>
Comparte esto en :
PHP, Programación


Encuentrame en Flickr