笨笨網站超級論壇 (綠色版本)


頁: [1]

#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>  &lt;&lt;&lt;背景圖網址,可更改</FONT></P>
<P><FONT color=#800080></FONT> </P>
<P><FONT color=purple>var speed = 0; &lt;&lt;&lt; 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>&lt;script language="Javascript"&gt;<BR>&lt;!--<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 &gt;= 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&gt;0)) hPos=-100000<BR>hPos += movert<BR>} <BR>if (!isNaN(vPos)) {<BR>if ((movedn!=0) && (vPos&gt;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>--&gt;<BR>&lt;/script&gt;</FONT><BR></P>

#2  複製上列語法 -  (Administrator) 發表於 25-5-2013 12:33

<form name="copy">
<textarea cols="40" name="txt" rows="4" style="BACKGROUND-COLOR:#ffffff; COLOR:#000000; FONT-SIZE:9pt">
<script language="Javascript">
<!--
var background = "http://www.bunbunhk.com/GIF/01/03.gif";
var speed = 0;
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName != "Netscape" || browserVer >= 4.5) {
function moveback(movert,movedn,hPos,vPos) {
if (arguments[4])
document.body.style.backgroundImage = "url(\"" + arguments[4] + "\"";
if (arguments[5])
document.body.style.backgroundRepeat = arguments[5]
if (!isNaN(hPos)) {
if ((movert!=0) && (hPos>0)) hPos=-100000
hPos += movert
}
if (!isNaN(vPos)) {
if ((movedn!=0) && (vPos>0)) vPos=-100000
vPos+= movedn
}
document.body.style.backgroundPosition= hPos + " " + vPos
if (isNaN(hPos)) hPos = "\"" + hPos + "\""
if (isNaN(vPos)) vPos = "\"" + vPos + "\""
setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+"",speed)
}
moveback(1,1,0,0, background);
}
-->
</script>
</textarea><br>
<input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="全選">
</form>

<br>

<script type="text/javascript"><!--
google_ad_client = "ca-pub-4078143172638881";
/* 336X280 */
google_ad_slot = "3268225205";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
頁: [1]

Powered by Discuz Simply! 0.54 Released © wxyuan90