Saturday, April 23, 2011

Redirect 1-page to other page java script

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type="text/javascript">
var t_initial=16;
var t_ramas=t_initial;
var var_oprire='false';
function delayer(){
   window.location = "http://www.google.com/"
}

function timp_ramas( )
{
t_ramas=t_ramas-1;
if(t_ramas>0)
{
 document.getElementById('ramas').innerHTML=t_ramas+' ';
  }
 else
 {
 document.getElementById('ramas').innerHTML=0+' ';
 }
}

</script>


</head>

<body  onLoad="setTimeout('delayer()',15000); setInterval('timp_ramas()',1000)">

<div style="text-align: center">
--- You will be re-driected in
 <span style="font-size:medium;color:blue" id="ramas">

 </span>
  <span>  seconds to xxxx page!</span>


</body>
</html>

No comments:

Post a Comment