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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<script type="text/javascript">//<![CDATA[
function appendIframe(){
var d,i,e;
try{
d=document.getElementById('refresh');
i=document.createElement('iframe');
i.setAttribute('src','http://xxx.xxx.xxx.xxx/connecte.php'); // Adresse
i.setAttribute('width','256'); // Largeur
i.setAttribute('height','256'); // Hauteur
i.setAttribute('frameborder','0');
i.setAttribute('scrolling','auto');
i.setAttribute('hspace','0');
i.setAttribute('vspace','0');
i.setAttribute('marginheight','0');
i.setAttribute('marginwidth','0');
while(d.hasChildNodes())d.removeChild(d.lastChild);
d.appendChild(i);
}catch(e){}
finally{
this.counter=setTimeout(appendIframe,120000); // 1000 * 120 sec.
}
}
window.onload=appendIframe;
//]]>
</script>
</head>
<body>
<div id="refresh"></div>
</body>
</html> |
Partager