大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 网页设计 -> 经验技巧 -> 鼠標傚果

鼠標傚果

时间: 2021-07-31 作者:daque

<script language=javascript>var images='http://www.1studio.net/html/example/0098/star.gif';var amount=7;var speed=1;var runtime = 0;var cntr=0;var xcntr=100;var pulse=25;var xpos = 0;var ypos = 0;var _y;var temp;var updown=-10;var leftright=-5;if (document.all){document.write('<div id="iediv" style="position:absolute;top:0px;left:0px">');document.write('<div id="c" style="position:relative">');for (n=0; n < amount; n++)document.write('<img src="'+images+'" style="position:absolute;top:0px;left:0px;visibility:hidden">');document.write('</div>');document.write('</div>');function followmouse(){xpos = document.body.scrollleft+event.x+updown;ypos = document.body.scrolltop+event.y+leftright;}document.onmousemove = followmouse;}else if (document.layers){window.captureevents(event.mousemove);function xfollowmouse(evnt){xpos = evnt.pagex+updown;ypos = evnt.pagey+leftright;}window.onmousemove = xfollowmouse;for (ns=0; ns < amount; ns++) document.write("<layer name='ie"+ie+"' left=0 top=0 visibility=hide><img src='"+images+"'></layer>");}function msi(){if (document.layers){for ( i = 0 ; i < ns ; i++ ){temp="n"+idocument.layers[0].visibility='show';document.layers[0].top = ypos+cntr*math.cos((runtime+i*4.5)/5);document.layers[0].left =xpos+cntr*math.sin((runtime+i*4.5)/5);}cntr+=1;runtime+=speed;stp=settimeout('msi()',10);if (cntr>=100){cntr=100;speed=2.5;for ( i = 0 ; i < ns ; i++ ){temp="n"+idocument.layers[temp].visibility='show';document.layers[temp].top=ypos+cntr*math.cos((runtime-100)*i/90);document.layers[temp].left=xpos+cntr*math.sin((runtime-100)*i/90);}}if (runtime>182){speed=0.5;for ( i = 0 ; i < ns ; i++ ){temp="n"+idocument.layers[temp].top=ypos+xcntr*math.cos(((runtime-182)+i*4.5)/5);document.layers[temp].left=xpos+xcntr*math.sin(((runtime-182)+i*4.5)/5)*math.cos((runtime-182)/5);}}} else if (document.all){for (i=0;i<iediv.all.c.all.length;i++){iediv.all.c.all[0].style.visibility='visible';iediv.all.c.all[0].style.top=ypos+cntr*math.cos((runtime+i*4.5)/5);iediv.all.c.all[0].style.left=xpos+cntr*math.sin((runtime+i*4.5)/5);} cntr+=1;runtime+=speed;stp=settimeout('msi()',10);if (cntr>=100){cntr=100;speed=2.5;for (i=0;i<iediv.all.c.all.length;i++){iediv.all.c.all[i].style.visibility='visible';iediv.all.c.all[i].style.top=ypos+cntr*math.cos((runtime-100)*i/90);iediv.all.c.all[i].style.left=xpos+cntr*math.sin((runtime-100)*i/90);}}if (runtime>182){speed=0.5;for (i=0;i<iediv.all.c.all.length;i++){iediv.all.c.all[i].style.top=ypos+xcntr*math.cos(((runtime-182)+i*4.5)/5);iediv.all.c.all[i].style.left=xpos+xcntr*math.sin(((runtime-182)+i*4.5)/5)*math.cos((runtime-182)/5);}}}if (runtime>210){xcntr-=10;}if (document.layers)_y=-window.innerwidth-90;else if (document.all)_y=-document.body.clientwidth-90;if (xcntr <= _y){runtime=0;speed=1;cntr=0;xcntr=100;}}msi()//--></script><body bgcolor="#000000">

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.