教學:http://tw.myblog.yahoo.com/hdes8864123/article?mid=349&prev=353&next=320

:燭光晚餐的音樂語法:<embed allowscriptaccess="never" src="http://vlog.xuite.net/vlog/swf/lite.swf?media= MTMwNTc5Ng&ar&ar=&ar=1&as=1" width="0" height="0"></embed>
(
自動撥放:&ar=1&as=1這是音樂循環語法,若是將它變為&ar=0&as=0的話,便是要手動的了)

隨機播放多首的音樂盒語法
隨機撥放音樂:
<SCRIPT Language="JavaScript">
tips = new Array(4);
tips[0] = "
音樂網址";
tips[1] = "
音樂網址";
tips[2] = "
音樂網址";
tips[3] = "
音樂網址";index = Math.floor(Math.random() * tips.length);
document.write("<EMBED SRC=" + tips[index] + " autostart=true width=0 height=0 loop=true hidden=TRUE></EMBED>");
</SCRIPT>
藍色部分可增加音樂數目
-------------------------------------------------------------------------
隨機撥放音樂(有撥放器):
<SCRIPT LANGUAGE="JavaScript">
var random=Math.floor(5*Math.random()+1)
var str
if (random==1){music="
音樂網址"; str="歌名";}
if (random==2){music="
音樂網址"; str="歌名";}
if (random==3){music="
音樂網址"; str="歌名";}
if (random==4){music="
音樂網址"; str="歌名";}
if (random==5){music="
音樂網址"; str="歌名";}
document.write('<embed src='+music+'
width=280 height=44 loop=true autostart=true controls=smallconsole><br>')
var random=document.write("<font size=
3 color=色馬>內容 </font><font size=3 color=色馬> "+str+" </font>")
</SCRIPT>
紅色部分*改撥放器大小 綠色部分改字體大小

參考資料 http://www.demons.org/read.php?tid=20314&fpage=2\

 

如何設定打開網頁後自動隨機播放音樂的程式碼(語法)?

<embed src="此處貼上音樂網址" autostart="random" loop="-1" volume="100" width="230" height=45></embed>

   
將原本的autostart中的『yes』改為『random』,應該就可以隨機播放了。

首先,先建立一個m3u的音樂清單(使用Windows Media Player建立即可),在挑選好要播放的歌曲後,建立m3u播放清單,之後輸入此語法即可。用記事簿打開m3u播放清單後,可發現歌曲的連結,記得將連結改為有效連結(連在自己的電腦人家可是聽不到的喔!),將歌曲上傳後把m3u的歌曲連結改為上傳後的連結即可。

<embed src="m3u網址"
width="300" height="120"
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="true">
<PARAM NAME="loop" VALUE="true">
<PARAM NAME="ShowStatusBar" VALUE="true">
<PARAM NAME="volume" VALUE="70%">
</embed>

 

---------------------------------------------------------

 音樂語法  
撥放音樂(隱藏MID)

<BGSOUND balance=0 src="網址(隱藏mid) " volume=-20 loop=infinite>

撥放音樂(MID)  - 「歌名」<FONT COLOR=8800FF><embed src=音樂網址(mid) loop=3 >

撥放音樂(RM) 

「歌名」BY:歌手<EMBED align=middle
src=
網址(rm) width=90 height=40
type=audio/x-pn-realaudio-plugin autostart="true" loop="true" volume="100"
exts="ra
ram" Init fn="load-types" mime-types="mime.types" ALT="(Random)">

撥放音樂(隱藏RM)  -

 <embed src="音樂的網址(隱藏rm)"autostart=true loop=true width="0" height="0">

普通音樂語法:<embed src="音樂網址" autostart=true loop=true width="99" height="99">
MP3音樂語法:<embed width="200" height="150" src="音樂網址">
Midi音樂語法:<BGSOUND SRC="音樂網址"LOOP=-1>
MTV公開音樂語法:〔swf檔用〕- <embed src="音樂網址">


rm音樂語法:
<embed src="
音樂網址" width="159" height="99" autostart="true" hidden="false" loop="infinite"
align="middle" volume="100" type="audio/x-pn-realaudio-plugin" exts="ra,ram" Init fn="load-types"
mime-types="mime.types" ALT="(Random)">

 

arrow
arrow
    全站熱搜

    張紫彤 發表在 痞客邦 留言(3) 人氣()