找回密码
 注册

滑鼠 + 蝴蝶

[复制链接]
Persephone 发表于 9-1-2008 22:07:07 | 显示全部楼层 |阅读模式

马上注册成为YANBONG会员吧!
时下最热门的资讯、娱乐、贴图等分享都在这里等你发掘哦!

您需要 登录 才可以下载或查看,没有账号?注册

×
         將下面框內的程式碼複製,貼在<body>及</body>標籤之間。

  1. <META http-equiv="Page-Enter" CONTENT="RevealTrans(Duration=4,Transition=4)">
  2. <div align="center">
  3. <center>
  4. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  5. </table>
  6. </center>
  7. </div>
  8. <div id="yyd0"
  9. style="position:absolute; width=50;height=50;z-index:1;clip: rect(0 50 50 0)">
  10. <img src="蝴蝶圖">
  11. </div>
  12. <div
  13. id="yyd1"
  14. style="position:absolute;width=50;height=50; z-index:1;clip: rect(0 50 50 0)">
  15. <img src="蝴蝶圖">
  16. </div>
  17. <script language="JavaScript">
  18. <!--
  19. var yyns4=window.Event?true:false; var mt = 0; var ml = 0;
  20. document.onmousemove = Mousetrace;
  21. tracescript = '';
  22. if (yyns4){ document.captureEvents(Event.MOUSEMOVE);
  23.   Mousetrace('',',document.Mousetrace1')}
  24. LayerMove(0,0,'ml+cos((15*sin(yycnt/24))+0)*120*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','mt+sin((15*sin(yycnt/36))+0)*90*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd0\']',2000,true,100,0,1);
  25. LayerMove(0,0,'ml+cos((15*sin(yycnt/16))+90)*120*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','mt+sin((15*sin(yycnt/28))+90)*90*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd1\']',2000,true,100,0,1);
  26. -->
  27. </script>
复制代码



                                                              將下面框內的程式碼複製,貼在<head>及</head>標籤之間。


  1. <script language="JavaScript">
  2. <!--
  3. function LayerMove(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep)
  4. {
  5. if ((document.layers)||(document.all)){
  6.   with (Math) {yynextx= eval(yyfnx)}
  7.   with (Math) {yynexty= eval(yyfny)}
  8.   yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep;
  9.   if (document.layers){
  10.     eval(yydiv+".top="+(yynexty+yytop))
  11.     eval(yydiv+".left="+(yynextx+yyleft))
  12.   }
  13.   if (document.all){
  14.     eval("yydiv=yydiv.replace(/.layers/gi, '.all')");
  15.     eval(yydiv+".style.pixelTop="+(yynexty+yytop));
  16.     eval(yydiv+".style.pixelLeft="+(yynextx+yyleft));
  17.   }
  18. argStr='LayerMove('+yyleft+','+yytop+',"'+yyfnx+'","'+yyfny+'","'+yydiv+'",'+yybilder+','+yyloop+','+yyto+','+yycnt+','+yystep+')';
  19.   if (yycnt<=yystep*yybilder)
  20.   {
  21.   eval(yydiv+".yyto=setTimeout(argStr,yyto)");}
  22.   }
  23. }
  24. function Mousetrace(evnt) {
  25. if (yyns4)
  26.   {if (evnt.pageX) {ml=evnt.pageX;  mt=evnt.pageY;}  }
  27. else{
  28.    ml=(event.clientX + document.body.scrollLeft);
  29.    mt=(event.clientY + document.body.scrollTop);
  30. }
  31. if (tracescript)eval(tracescript)
  32. }
  33. -->
  34. </script>
  35. <META http-equiv="Page-Enter" CONTENT="RevealTrans(Duration=4,Transition=4)">
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

ADVERTISEMENT

Archiver|手机版|小黑屋|YANBONG

GMT+8, 29-3-2024 10:32

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

重要声明:本网站是以即时上载留言的方式运作,本站对所有留言的真实性、完整性及立场等,不负任何法律责任。而一切留言之言论只代表留言者个人意见,并非本网站之立场,用户不应信赖内容,并应自行判断内容之真实性。由于讨论区是受到「即时留言」运作方式所规限,故不能完全监察所有即时留言,若读者发现有留言出现问题,请联络我们。本站有权删除任何留言及拒绝任何人士留言,同时亦有不删除留言的权利。切勿撰写粗言秽语、诽谤、渲染色情暴力或人身攻击的言论,敬请自律。
Proudly hosted by
LinodeDigital Ocean
快速回复 返回顶部 返回列表