电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

鼠标旋转特效


发布日期:2021/1/14
 

<script language="JavaScript">

<! var images=;//Put your image name here!!var amount=; //Number of images here!!var yBase = ;var xBase = ;var step = ;var currStep = ;var Xpos = ;var Ypos = ;var i = ;var j = ;if (documentall){documentwrite(<div id="ieDiv" style="position:absolute;top:px;left:px">)documentwrite(<div id="c" style="position:relative">);for (n=; n < amount; n++)documentwrite(<img src=" +images+" style="position:absolute;top:px;left:px">)documentwrite(</div>)documentwrite(</div>)function MsieMouseFollow(){Xpos = documentbodyscrollLeft+eventx;Ypos = documentbodyscrollTop+eventy;}documentonmousemove = MsieMouseFollow;}else if (documentlayers){windowcaptureEvents(EventMOUSEMOVE);for (ns=; ns < amount; ns++)documentwrite("<LAYER NAME=n"+ns+" LEFT= TOP=><IMG SRC="+images+"></LAYER>");function NsMouseFollow(evnt){Xpos = evntpageX;Ypos = evntpageY;}windowonMouseMove = NsMouseFollow;}function Swirl(){if (documentall){yBase = windowdocumentbodyoffsetHeight/;xBase = windowdocumentbodyoffsetWidth/;}else if (documentlayers){yBase = windowinnerHeight/;xBase = windowinnerWidth/;}if (documentall){for (i=;i<ieDivallcalllength;i++){ ieDivallcall[i]styletop = Ypos + Mathcos((*Mathsin(currStep/))+i*)*yBase*(Mathsin(+currStep/)+)*Mathcos((currStep + i*)/); ieDivallcall[i]styleleft = Xpos + Mathsin((*Mathsin(currStep/))+i*)*xBase*(Mathsin(+currStep/)+)*Mathcos((currStep + i*)/);}}else if (documentlayers){for ( j = ; j < ns ; j++ ) // is number of NS layers!{ var temp="n"+j documentlayers[temp]top = Ypos + Mathcos((*Mathsin(currStep/))+j*)*yBase*(Mathsin(+currStep/)+)*Mathcos((currStep + j*)/); documentlayers[temp]left =Xpos + Mathsin((*Mathsin(currStep/))+j*)*xBase*(Mathsin(+currStep/)+)*Mathcos((currStep + j*)/);}}currStep += step;setTimeout("Swirl()" );}Swirl();// ></script>

上一篇:去掉gridPanel表头全选框的小例子

下一篇:多个datatable共存造成多个表格的checkbox都被选中