恋雾迷尘论坛's Archiver

爱雨冷雪 发表于 2006-7-5 05:48

隨機換風格(適合任何版本)

隨機換風格
安裝:易
程式語言:html
適用:任何版本
建議:如果不喜歡script可以不用看

演示:([color=#ff6666]請進去後按重新整理.試試.不懂的人看看就好[/color])
[url=http://www.poleword.com/bbs/]http://www.poleword.com/bbs/[/url]
找default/index.htm或其他模組

[code]{template header}[/code]

下面放

[code]<head>
<!------------ 插入控制碼區段開始 pole------------>  
<script>
<!--
var backgr1="風格網址"
var backgr2="風格網址"
var backgr3="風格網址"
var backgr4="風格網址"
var backgr5="風格網址"
var cur=Math.round(6*Math.random())
if (cur<=1)
backgr=backgr1
else if (cur<=4)
backgr=backgr2
else
backgr=backgr3
document.write('<body background="'+backgr+'" bgcolor="#000000">')
-->
</script>
<!------------ 插入控制碼區段結束 pole------------>
</head>
[/code]

自行修改圖檔的名稱及路徑
在 <body background="'+backgr+'" bgcolor="#000000"> 中修改圖檔遺失時取代的背景顏色

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.