pc.yzdown.com 脚本展示
向右移动特效
注意:改< body> < body BGCOLOR="#ffffff" TEXT="FFD700" LINK="#FFD700" VLINK="#B8860B" ALINK="#FFFFFF" onLoad="init();moveLayerRight('movingGhostR');">
以下代码加入<head>区域
<script language="javascript"> <!-- //global variables var layerRef="null",layerStyleRef="null",styleSwitch="null"; var rightStopPoint="null"; var currRight=-800; function init(){ if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; rightStopPoint=50; }else{ layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; rightStopPoint="50px"; } } function moveLayerRight(layerName){ if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left != rightStopPoint')){ currRight+=2; eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left = currRight'); setTimeout('moveLayerRight("'+layerName+'")',2); }else{ currRight=-800; eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left = currRight'); setTimeout('moveLayerRight("'+layerName+'")',2); } } //--> </script> <STYLE TYPE="text/css"> /*CREDITS LAYERS*/ #movingGhostR {POSITION: absolute; Z-INDEX: 100; VISIBILITY: visible; LEFT: -800; TOP: 20;} </STYLE>
以下代码加入<body>区域
<!--GHOST RIGHT LAYER--> <div id="movingGhostR" > <table border=0 width="1500" height="120" > <tr> <td> <center> <img src="http://goodle.myrice.com/img/logo.gif" border=0 width="50" height="52"> </center> </td> </tr> </table> </div>
可能某段代码会由于COPY时的不小心以至不能正常显示,如发现此情况,请告知 pc.yzdown.com