t();", interval ); } else window.setTimeout("Helpor_net();", interval ); } Helpor_net(); </script>
22、文字从左往右移动 说明: 文字在状态栏上从右往左显示,而且是循环的 代码: <script> <!-- function Helpor_net(seed) { var m1 = "欢迎来到网页特效世界,请多提意见。谢谢! !" ; var m2 = "" ; var msg=m1+m2; var out = " "; var c = 1; var speed = 120; if (seed > 100) { seed-=2; var cmd="Helpor_net(" + seed + ")"; timerTwo=window.setTimeout(cmd,speed);} else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { out+=" ";} out+=msg; seed-=2; var cmd="Helpor_net(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,speed); } else if (seed <= 0) { if (-seed < msg.length) { out+=msg.substring(-seed,msg.length); seed-=2; var cmd="Helpor_net(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,speed);} else { window.status=" "; timerTwo=window.setTimeout("Helpor_net(100)",speed); } } } Helpor_net(100); --> </script>
23、图像自动变化 说明: 把一张图片变形扭曲成各种不同的长宽,非常好玩 代码: <img src="/manage/edit/UploadFile/2006913215545105.gif" name="u" border="1" alt="很好玩的"> <script language="JavaScript">
var b = 1; var c = true;
function www_helpor_net(){ if(document.all);
if(c == true) { b++; } if(b==100) { b--; c = false }
if(b==10) { b++; c = true; }
if(c == false) { b--; } u.width=150 + b; u.height=125 - b; setTimeout("www_helpor_net()",50); } www_helpor_net(); </script>
24、漫天飞雪 说明: 漫天飞雪 &nb << 上一页 [21] [22] [23] [24] [25] [26] [27] 下一页 (中华企业文化网)
|