#1 滑動背景圖 - 蛙 (Administrator) 發表於 18-5-2012 21:24
<P><FONT color=purple size=3><FONT color=blue>如不能顯示語法效果可貼去本站</FONT><A href="http://www.bunbun000.com/html/index.htm" target=_blank><FONT color=red size=3>語法測試板</FONT></A><FONT color=#0000ff size=3>試看</FONT></FONT></P><P> </P>
<P> </P>
<P> </P>
<P><A href="http://www.bunbunhk.com/GIF/01/03.gif"><FONT color=purple>http://www.bunbunhk.com/GIF/01/03.gif</FONT></A><FONT color=purple> <<<背景圖網址,可更改</FONT></P>
<P><FONT color=#800080></FONT> </P>
<P><FONT color=purple>var speed = 0; <<< 0是移動速度,數目越大越慢,可更改</FONT></P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue><script language="Javascript"><BR><!--<BR>var background = "</FONT><A href="http://www.bunbunhk.com/GIF/01/03.gif"><FONT color=blue>http://www.bunbunhk.com/GIF/01/03.gif</FONT></A><FONT color=blue>";<BR>var speed = 0;<BR>browserName = navigator.appName;<BR>browserVer = parseInt(navigator.appVersion);<BR>if (browserName != "Netscape" || browserVer >= 4.5) {<BR>function moveback(movert,movedn,hPos,vPos) {<BR>if (arguments[4])<BR>document.body.style.backgroundImage = "url(\"" + arguments[4] + "\"";<BR>if (arguments[5])<BR>document.body.style.backgroundRepeat = arguments[5]<BR>if (!isNaN(hPos)) {<BR>if ((movert!=0) && (hPos>0)) hPos=-100000<BR>hPos += movert<BR>} <BR>if (!isNaN(vPos)) {<BR>if ((movedn!=0) && (vPos>0)) vPos=-100000<BR>vPos+= movedn<BR>}<BR>document.body.style.backgroundPosition= hPos + " " + vPos<BR>if (isNaN(hPos)) hPos = "\"" + hPos + "\""<BR>if (isNaN(vPos)) vPos = "\"" + vPos + "\""<BR>setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+"",speed)<BR>}<BR>moveback(1,1,0,0, background);<BR>}<BR>--><BR></script></FONT><BR></P>