79、MP3播放器

79MP3播放器

脚本说明:

把如下代码加入<body>区域中

<object ID="nsPlayer" classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A">

<PARAM NAME="FileName" VALUE="20020808.mp3">

<PARAM NAME="AutoStart" VALUE="-1">

<PARAM NAME="ShowDisplay" VALUE="0">

</OBJECT>

<script for=nsPlayer event=StateChange>

var arr=new Array("Stopped","Paused","Playing")

alert(arr[nsPlayer.CurrentState])

</script>

 

 

Write a comment

Comments: 0