1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
   |  
<!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=iso-8859-2" />
<title>Untitled Document</title>
<script language="javascript">
x=5;
y=0;
 
function modif(id, text) {
	if (document.getElementById)
	{
		res = document.getElementById(id) ;
	}
	else if (document.all)
	{	
	res = document.all[id]; 
	}
	else if (document.layers)
	{
		res = document.layers[id];
	}
	res.innerHTML = "<b>"+text+"</b>";
}
 
function timer() {
x--;
 
if(x == 0) 
{ 
	var show='<form id="form1" name="form1" method="post" action="autosurf_site.php" target="_blank">'; 
	show = show+'<input type="submit" name="button" id="button" value="Site suivant" onclick="recharge();" />';
    show = show+'</form>';
	modif('info','Veuillez cliquer sur le bouton suivant'); 
}
else
{
	var show=x;
 
	setTimeout('timer()', 1000);
}
modif('timer', show);
}
 
function recharge()
{
 
	if (y >= 2)
	{
		window.location.reload()
	}
	else
	{
		y++;
		x=5;
		timer();
	}
}
 
</script>
</head>
 
<body>
<div align="center" id='info'><strong>Veuillez patienter</strong></div></font>
<div style="text-align:center; font-family: Tahoma, sans-serif; font-size: 2em;" id="timer"><strong>Chargement...</strong></div>
<script>
			timer();
		</script>
<form id="form1" name="form1" method="post" action="autosurf_site.php" target="_blank">
<input type="submit" name="button" id="button" value="Site suivant" onclick="recharge();" />
</form>
</body>
</html> | 
Partager