每隔12秒刷新一次,刷新时会请求URL stone,URL中一段随机数由本地生成。
<HTML> <HEAD> <TITLE> yaya.html </TITLE> <meta http-equiv="refresh" content="12;"> </HEAD> <script language="javascript"> function init() { var numbr = Math.random(); var stone = "" + numbr + "&group=213&ndid=6886" myform.hello.value = stone; var ifrm = document.getElementById("main"); ifrm.setAttribute("src",stone,0); } </script> <BODY onload="init();"> <form name="myform"> <img src="http://mat1.qq.com/musictop2/images_song/1249668624.jpg"></img> <input name="hello" type="text" size="90"> <br>这个页面12秒自动刷新和投票一次,1表示投票成功, 一台电脑只能开一个啊:-) <div><iframe id="main" name="main" ></div><br> </form> </BODY> </HTML>
|
阅读(4498) | 评论(1) | 转发(0) |