玩具火车
加入如下代码到body区域 <DIV id=span0 style="VISIBILITY: hidden; POSITION: absolute"><IMG height=48 width=36 src="36/001.gif"></DIV> <DIV id=span1 style="VISIBILITY: hidden; POSITION: absolute"><IMG height=48 width=36 src="36/002.gif"></DIV> <DIV id=span2 style="VISIBILITY: hidden; POSITION: absolute"><IMG height=48 width=36 src="36/003.gif"></DIV> <DIV id=span3 style="VISIBILITY: hidden; POSITION: absolute"><IMG height=48 width=36 src="36/004.gif"></DIV> <DIV id=span4 style="VISIBILITY: hidden; POSITION: absolute"><IMG height=48 width=36 src="36/005.gif"></DIV> <DIV id=span5 style="VISIBILITY: hidden; POSITION: absolute"><IMG height=48 width=36 src="36/006.gif"></DIV> <SCRIPT language=JavaScript> <!-- Begin var step=8 var stepbasic=15 var numberofimages=6 var spacebetweenimgs=36 var x,y var flag=0 var xpos=new Array() for (i=0;i<=6;i++) { xpos[i]=-100 } var ypos=new Array() for (i=0;i<=numberofimages;i++) { ypos[i]=-100 } function handlerMM(e) { x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function initiatetracker() { if (document.all) { for (i=0; i<numberofimages; i++) { var thisspan=eval("span"+(i)+".style") thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] thisspan.visibility="visible" } gs9768() } if (document.layers) { for (i=0; i<numberofimages; i++) { var thisspan=eval("document.span"+i) thisspan.left=xpos[i] thisspan.top=ypos[i] thisspan.visibility="visible" } gs9768() } } function gs9768() { if (flag==1 && document.all) { for (i=numberofimages; i>=1; i--) { xpos[i]=xpos[i-1]+spacebetweenimgs ypos[i]=ypos[i-1] } xpos[0]=x+stepbasic ypos[0]=y for (i=0; i<numberofimages; i++) { var thisspan = eval("span"+(i)+".style") thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] } } else if (flag==1 && document.layers) { for (i=numberofimages; i>=1; i--) { xpos[i]=xpos[i-1]+spacebetweenimgs ypos[i]=ypos[i-1] } xpos[0]=x+stepbasic ypos[0]=y for (i=0; i<numberofimages; i++) { var thisspan = eval("document.span"+i) thisspan.left=xpos[i] thisspan.top=ypos[i] } } var timer=setTimeout("gs9768()",50) } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove=handlerMM; window.onload=initiatetracker // End --> </SCRIPT>
所用图片下载