Persephone 发表于 9-1-2008 22:07:07

滑鼠 + 蝴蝶

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

<META http-equiv="Page-Enter" CONTENT="RevealTrans(Duration=4,Transition=4)">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
</table>
</center>
</div>
<div id="yyd0"
style="position:absolute; width=50;height=50;z-index:1;clip: rect(0 50 50 0)">
<img src="蝴蝶圖">
</div>
<div
id="yyd1"
style="position:absolute;width=50;height=50; z-index:1;clip: rect(0 50 50 0)">
<img src="蝴蝶圖">
</div>
<script language="JavaScript">
<!--
var yyns4=window.Event?true:false; var mt = 0; var ml = 0;
document.onmousemove = Mousetrace;
tracescript = '';
if (yyns4){ document.captureEvents(Event.MOUSEMOVE);
Mousetrace('',',document.Mousetrace1')}
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);
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);
-->
</script>

http://cauect.8866.org/html/inbody.JPG

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


<script language="JavaScript">
<!--
function LayerMove(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep)
{
if ((document.layers)||(document.all)){
with (Math) {yynextx= eval(yyfnx)}
with (Math) {yynexty= eval(yyfny)}
yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep;
if (document.layers){
    eval(yydiv+".top="+(yynexty+yytop))
    eval(yydiv+".left="+(yynextx+yyleft))
}
if (document.all){
    eval("yydiv=yydiv.replace(/.layers/gi, '.all')");
    eval(yydiv+".style.pixelTop="+(yynexty+yytop));
    eval(yydiv+".style.pixelLeft="+(yynextx+yyleft));
}
argStr='LayerMove('+yyleft+','+yytop+',"'+yyfnx+'","'+yyfny+'","'+yydiv+'",'+yybilder+','+yyloop+','+yyto+','+yycnt+','+yystep+')';
if (yycnt<=yystep*yybilder)
{
eval(yydiv+".yyto=setTimeout(argStr,yyto)");}
}
}
function Mousetrace(evnt) {
if (yyns4)
{if (evnt.pageX) {ml=evnt.pageX;mt=evnt.pageY;}}
else{
   ml=(event.clientX + document.body.scrollLeft);
   mt=(event.clientY + document.body.scrollTop);
}
if (tracescript)eval(tracescript)
}
-->
</script>
<META http-equiv="Page-Enter" CONTENT="RevealTrans(Duration=4,Transition=4)">


http://cauect.8866.org/html/inhead.JPG
页: [1]
查看完整版本: 滑鼠 + 蝴蝶