<html>
<head>
</head>
<body>
<object id="mediaplayer" codeBase="http://activex.,4,7,1112" width="347" height="64" type="application/x-oleobject" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" standby="Loading Windows Media Player components...">
<param name="url" value=""/>
<param name="Mute" value="false"/>
<param name="AutoStart" value="true"/>
<param name="EnableContextMenu" value="false"/>
<param name="SendMouseMoveEvents" value="false"/>
<param name="SendMouseClickEvents" value="false"/>
<param name="SendKeyboardEvents" value="false"/>
<param name="InvokeURLs" value="false"/>
<param name="PlayCount" value="100"/>
<param name="DefaultFrame" value="datawindow"/>
<param name="Volume" value="100"/>
</object>
<script language="javascript">
var play = document.getElementById("mediaplayer") ;
var musicList = new Array(2) ;
var index = 0 ;
musicList[0] = "E:/音乐/群星 手牵手.mp3" ;
musicList[1] = "E:/音乐/群星 承诺.mp3" ;
setInterval("playMusic()", 1000) ;
function playMusic()
{
if(play.url == "" || index == musicList.length)
{
index = 0 ;
play.url = musicList[index] ;
}
if((parseInt(play.currentMedia.duration) - 1) == parseInt(play.controls.currentPosition))
{
play.url = musicList[++index] ;
}
}
</script>
</body>
</html>
[[it] 本帖最后由 guoxhvip 于 2008-6-12 00:08 编辑 [/it]]