Inicio > PHP, Programación > Redireccionamiento

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"); 
?>
VN:F [1.0.9_379]


Comparte esto en :Enviar a Apezz
Ancelot PHP, Programación , , ,

  1. Sin comentarios aún.
  1. Sin trackbacks aún.
;) :| :x :wallhead: :twisted: :roll: :plop: :oops: :oo: :o_o: :o :nu: :mrgreen: :mad: :lol: :jaja: :idea: :gun: :grr: :flush: :evil: :drunk: :cry: :clap: :buu: :brr: :arrow: :P :D :?: :? :) :( :!: 8O 8)