Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理

概述:

     让屏幕抖动一阵。

代码:          

<input onclick="www_helpor_net(2)" type="button" value="地震啦!!!">
<script language="JavaScript">
<!--
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != null) {
parent.main.location.href
=form.select1.options[myindex].value;
}
}
// -->
</script>
<script language="JavaScript1.2">
<!--
function www_helpor_net(n) {
if (window.top.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
window.top.moveBy(
0,i);
window.top.moveBy(i,
0);
window.top.moveBy(
0,-i);
window.top.moveBy(
-i,0);
}
}
}
alert(
" 没吓坏吧!!! ");
}
// -->
</script>
      

 

 

posted on 2008-09-24 16:52  王晓成  阅读(420)  评论(0编辑  收藏  举报