xg問題..

2007-07-22 6:58 am
我想要隨機背景圖ge語發..
同播歌ge語發..
xg用ge..要講埋擺係冰..~
同1問..點可以上傳d歌..有網址個d..?
好似上傳圖片個d....
xg用到ge..thx..=]

回答 (2)

2007-07-25 7:19 am
✔ 最佳答案
隨機背景圖片+自訂位置



Code

Header

<script language=javascript>
var pic=new Array(5)
pic[0]="http://kkx3.net/xanga/kklogo.gif"
pic[1]="http://kkx3.net/xanga/kkx3logo.gif"
pic[2]="http://kkx3.net/xanga/profile.gif"
pic[3]="http://kkx3.net/xanga/kkx3logo.gif"
pic[4]="http://kkx3.net/xanga/profile.gif

var newdate=new Date()
var getpic=newdate.getSeconds()%pic.length
document.write('<STYLE>')
document.write('body{ background-image: url('+pic[getpic]+');')
document.write(' background-repeat: no-repeat; ')
document.write('background-attachment: fixed; ')
document.write('background-position: 50% 50% }')
document.write('</STYLE>')
</script>

Ads





Remarks

透修改返圖片位置同埋 [ ] 入面既數字, array ( ) 內既數字 
語法中最底部 background-position: 50% 50%
50% 50% 是控制圖片顯示位置、可修改
若設定為 background-position: 0% 0%
則是升到、最高、最左。如此類推

背景隨機音樂
<!--- [START] code provided by kkx3.com --->
<script language="JavaScript">
<!--


knames = new Array();
knames[0]="kkx3_midi1";
knames[1]="kkx3_midi2";


kurls = new Array();
kurls[0]="http://kkx3.net/xanga/midi/001.mid";
kurls[1]="http://kkx3.net/xanga/midi/002.mid";


index=Math.floor(Math.random() * kurls.length);
document.write("<center><embed src="+kurls[index]+" width=100 height=50 align=top autostart=true loop=true controls=hidden type=audio/x-pn-realaudio-plugin exts=ra,ram Init fn=load-types mime-types=mime.types></embed></center>")
document.write("<center><font color=#000000>"+knames[index]+"</center>")
//-->
</script>
<!--- [END] code provided by kkx3.com --->
放係Input your own Header HTML,WEBSITE STATS都得
記得加歌時右埋[方括]內既數字
width同height可以隨便調較,0為不顯示
autostart值 可改為 false ,代表不自動播放

其實係XANGA本身自己入面有得UPLOAD嫁!
http://audio.xanga.c om/uploadaudio.aspx
你入左落去之後呢,,
瀏覽啦...
UP完之後呢,,你再CHICK番你UP個個FILE
之後你係個個大喇叭下面有個『PREVIEW AUDIO』,,
你禁左之後就會搵到個個LINK嫁啦!!
2007-07-22 7:29 am
www.kkx3.com
surf it n u can find a lot more
參考: myself


收錄日期: 2021-04-12 20:35:46
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070721000051KK04555

檢視 Wayback Machine 備份