<SCRIPT language="JavaScript">var sound1="song1.mid"
var sound2="song2.mid"
var sound3="song3.mid"
var sound4="song4.mid"
var sound5="song5.mid"
var sound6="song6.mid"
var sound7="song7.mid"
var sound8="song8.mid"
var sound9="song9.mid"
var sound10="song10.mid"
var x=Math.round(Math.random()*9)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else x=sound10
document.write('<embed src='+'"'+x+'"'+' border="0" width="20" height="20" autostart="true" loop="true" controls="ControlPanel,StatusBar">')
</SCRIPT>
请教高手 为什么播放控制器不能够显示!~~~
var sound2="song2.mid"
var sound3="song3.mid"
var sound4="song4.mid"
var sound5="song5.mid"
var sound6="song6.mid"
var sound7="song7.mid"
var sound8="song8.mid"
var sound9="song9.mid"
var sound10="song10.mid"
var x=Math.round(Math.random()*9)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else x=sound10
document.write('<embed src='+'"'+x+'"'+' border="0" width="20" height="20" autostart="true" loop="true" controls="ControlPanel,StatusBar">')
</SCRIPT>
请教高手 为什么播放控制器不能够显示!~~~
下面是embed标签的一些属性供参考:src为要播放的音频文件的URL
autostart为是否自动播放,true是|false否(默认)
loop是否循环播放,true是|false否|n循环次数
hidden是否隐藏控制器,true是|false否(默认)
starttime开始播放的位置,格式为“分:秒”
value为音量大小,取值为0到100之间的整数
width,height控制器的高宽
align控制器和周围文字的对齐方式,取值top、bottom、center、baseline、 left、right、texttop、middle、absmiddle、absbottom
controls控制器的外观设置,取值console 一般正常面板
smallconsole 较小的面板
playbutton 只显示播放按钮
pausecutton 只显示暂停按钮
stopbutton 只显示停止按钮
volumelever 只显示音量调节按钮