- UID
- 373887
- 帖子
- 13
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2013-9-16
|
3#
发表于 2013-10-25 08:14
| 只看该作者
用代码可以实现自动刷新,拖动到书签栏,收集的三个自动刷新的代码- javascript:(function(){var intv=prompt('#Secs. between reloads?','60');if(intv&&!isNaN(intv)){with(document){write('<html><frameset rows=\'*,22\' framespacing=0 border=0 frameborder=no><frame noresize frameborder=no><frame scrolling=no noresize frameborder=no></frameset></html>');frames[0].location.href=document.location.href;var docstr='<html><center><body bgcolor=cyan style=\'margin-top:0px\'>\n';docstr+='Reloading in <span id=\'caption\'></span>secs.</body></center>\n';docstr+='<script>\nvar reloadIntv='+intv+';\nvar secsLeft='+intv+';\nfunction reloadFrame(){secsLeft=reloadIntv+1;parent.frames[0].location.href=parent.frames[0].location.href;}\nfunction countDown(){secsLeft--;showTime();}\nfunction showTime(){document.getElementById(\'caption\').innerHTML=parseInt(secsLeft)+\' \';}\nsetInterval(\'reloadFrame()\','+intv*1000+');\nsetInterval(\'countDown()\',1000);\nshowTime();\n</script>\n</html>';frames[1].document.write(docstr);}}})()
复制代码
- javascript:location.href = 'http://www.suasua.com/?url=' + location.href;
复制代码
- javascript:(function(p){open('','',p).document.write('<body id=1><nobr id=2></nobr><hr><nobr id=3></nobr><hr><a href="#"onclick="return!(c=t)">Force</a><script>function i(n){return d.getElementById(n)}function z(){c+=0.2;if(c>=t){c=0;e.location=u;r++}x()}function x(){s=t-Math.floor(c);m=Math.floor(s/60);s-=m*60;i(1).style.backgroundColor=(r==0||c/t>2/3?"fcc":c/t<1/3?"cfc":"ffc");i(2).innerHTML="Reloads: "+r;i(3).innerHTML="Time: "+m+":"+(s<10?"0"+s:s)}c=r=0;d=document;e=opener.top;u=prompt("URL",e.location.href);t=u?prompt("Seconds",60):0;setInterval("z()",200);if(!t){window.close()}</script></body>')})('status=0,scrollbars=0,width=100,height=115,left=1,top=1')
复制代码 |
|