急!请问如何用JS控制embed(背景音乐)的开始暂停和停止,用了网上的方法不行。 设置embed的id="它的名字"它的名字.play() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我设置了啊。要是我没设置document.my_music.pause()也不可能运行了。play()和IsPlaying()属性是不是只能在NS下使用? stop() //暂停play() //播放就可以了,没有停止的概念,如果要换首歌,我使用的是:bgMusic.outerHTML="<EMBED id=bgMusic src="+newURL+" loop=true autostart=false hidden=true>";bgMusic 就是 一个EMBED <body><embed id="MediaPlaye" name="MediaPlaye" src='31.mp3' autostart=1 loop=1></embed><input type=button onclick="document.embeds('MediaPlaye').stop()" value=stop><input type=button onclick="document.embeds('MediaPlaye').play()" value=play></body> 以上的说的都正确,补充一点,要实现停止,除了stop()还要加上:CurrentPosition=0写成函数就是:function dostop(){ MPlayer.Stop(); MPlayer.CurrentPosition=0;}//-->MPlayer为embed的id IE6下没有问题。好象和IE版本有关。就是document.embeds('MediaPlaye')写法的问题。建议使用mediaplayer<body><OBJECT classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 height=256 id="NSOPlay" type=application/x-oleobject width=245 standby="Connecting with Live Event. Please wait patiently..."> <PARAM NAME="AudioStream" VALUE="-1"> <PARAM NAME="AutoSize" VALUE="0"> <PARAM NAME="AutoStart" VALUE="-1"> <PARAM NAME="AnimationAtStart" VALUE="-1"> <PARAM NAME="AllowScan" VALUE="-1"> <PARAM NAME="AllowChangeDisplaySize" VALUE="-1"> <PARAM NAME="AutoRewind" VALUE="-1"> <PARAM NAME="Balance" VALUE="-1"> <PARAM NAME="BaseURL" VALUE=""> <PARAM NAME="BufferingTime" VALUE="5"> <PARAM NAME="CaptioningID" VALUE="-1"> <PARAM NAME="ClickToPlay" VALUE="-1"> <PARAM NAME="CursorType" VALUE="-1"> <PARAM NAME="CurrentPosition" VALUE="-1"> <PARAM NAME="CurrentMarker" VALUE="-1"> <PARAM NAME="DefaultFrame" VALUE="content"> <PARAM NAME="DisplayBackColor" VALUE="0"> <PARAM NAME="DisplayForeColor" VALUE="16777215"> <PARAM NAME="DisplayMode" VALUE="-1"> <PARAM NAME="DisplaySize" VALUE="-1"> <PARAM NAME="Enabled" VALUE="-1"> <PARAM NAME="EnableContextMenu" VALUE="-1"> <PARAM NAME="EnablePositionControls" VALUE="-1"> <PARAM NAME="EnableFullScreenControls" VALUE="-1"> <PARAM NAME="EnableTracker" VALUE="-1"> <PARAM NAME="Filename" VALUE="E:\mengxianhui\Mp3\AVSEQ03.DAT"> <PARAM NAME="InvokeURLs" VALUE="-1"> <PARAM NAME="Language" VALUE="-1"> <PARAM NAME="Mute" VALUE="0"> <PARAM NAME="fullScreen" VALUE="true"> <PARAM NAME="PlayCount" VALUE="-1"> <PARAM NAME="PreviewMode" VALUE="0"> <PARAM NAME="Rate" VALUE="1"> <PARAM NAME="SAMILang" VALUE=""> <PARAM NAME="SAMIStyle" VALUE=""> <PARAM NAME="SAMIFileName" VALUE=""> <PARAM NAME="SelectionStart" VALUE="-1"> <PARAM NAME="SelectionEnd" VALUE="-1"> <PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"> <PARAM NAME="SendWarningEvents" VALUE="-1"> <PARAM NAME="SendErrorEvents" VALUE="-1"> <PARAM NAME="SendKeyboardEvents" VALUE="0"> <PARAM NAME="SendMouseClickEvents" VALUE="-1"> <PARAM NAME="SendMouseMoveEvents" VALUE="-1"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"> <PARAM NAME="ShowCaptioning" VALUE="0"> <PARAM NAME="ShowControls" VALUE="-1"> <PARAM NAME="ShowAudioControls" VALUE="-1"> <PARAM NAME="ShowDisplay" VALUE="-1"> <PARAM NAME="ShowGotoBar" VALUE="0"> <PARAM NAME="ShowPositionControls" VALUE="-1"> <PARAM NAME="ShowStatusBar" VALUE="-1"> <PARAM NAME="ShowTracker" VALUE="-1"> <PARAM NAME="TransparentAtStart" VALUE="-1"> <PARAM NAME="VideoBorderWidth" VALUE="0"> <PARAM NAME="VideoBorderColor" VALUE="0"> <PARAM NAME="VideoBorder3D" VALUE="0"> <PARAM NAME="Volume" VALUE="-450"> <PARAM NAME="WindowlessVideo" VALUE="0"> <EMBED type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp" filename="http://colorweb.go.163.com/play.asx" name="NSOPlay" width="286" height="172" DefaultFrame="content" AnimationAtStart="-1" AutoRewind="-1" AutoStart="-1" Autosize="-1" ControlType="-1" DisplaySize="6" ShowAudioControls="-1" ShowControls="-1" ShowDisplay="-1" ShowGotoBar="-1" ShowPositionControls="-1" ShowStatusBar="-1" ShowTracker="-1" TransparentAtStart="-1"> </EMBED> </OBJECT><br><input onclick="document.all.NSOPlay.pause()" type=button value="Í£Ö¹"><input onclick="document.all.NSOPlay.AutoSize='-1';document.all.NSOPlay.fullScreen='true'" type=button value="fillscreen"><input onclick="document.all.NSOPlay.Play()" type=button value="²¥·Å"><input onclick="document.all.NSOPlay.ShowStatusBar='0'" type=button value="ûÓÐ״̬À¸"><input onclick="document.all.NSOPlay.Volume='-1000'" type=button value="¼õСÉùÒô"><input onclick="document.all.NSOPlay.Volume='0'" type=button value="Ôö´óÉùÒô"><input onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()" type=button value="»Ø·Å"><input onclick="document.all.NSOPlay.Previous()" type=button value="ÉÏÒ»Ê×"><input onclick="document.all.NSOPlay.Next()" type=button value="ÏÂÒ»Ê×"><input onclick="document.all.NSOPlay.FastForward()" type=button value="¿ì½ø"><input onclick="sound_up()" type=button value="+"><script>function sound_up(){ volume=document.all.NSOPlay.volume-1000; alert(volume) document.all.NSOPlay.volume=volume;}</script></body> <body><OBJECT classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 height=256 id="NSOPlay" type=application/x-oleobject width=245 standby="Connecting with Live Event. Please wait patiently..."> <PARAM NAME="AudioStream" VALUE="-1"> <PARAM NAME="AutoSize" VALUE="0"> <PARAM NAME="AutoStart" VALUE="-1"> <PARAM NAME="AnimationAtStart" VALUE="-1"> <PARAM NAME="AllowScan" VALUE="-1"> <PARAM NAME="AllowChangeDisplaySize" VALUE="-1"> <PARAM NAME="AutoRewind" VALUE="-1"> <PARAM NAME="Balance" VALUE="-1"> <PARAM NAME="BaseURL" VALUE=""> <PARAM NAME="BufferingTime" VALUE="5"> <PARAM NAME="CaptioningID" VALUE="-1"> <PARAM NAME="ClickToPlay" VALUE="-1"> <PARAM NAME="CursorType" VALUE="-1"> <PARAM NAME="CurrentPosition" VALUE="-1"> <PARAM NAME="CurrentMarker" VALUE="-1"> <PARAM NAME="DefaultFrame" VALUE="content"> <PARAM NAME="DisplayBackColor" VALUE="0"> <PARAM NAME="DisplayForeColor" VALUE="16777215"> <PARAM NAME="DisplayMode" VALUE="-1"> <PARAM NAME="DisplaySize" VALUE="-1"> <PARAM NAME="Enabled" VALUE="-1"> <PARAM NAME="EnableContextMenu" VALUE="-1"> <PARAM NAME="EnablePositionControls" VALUE="-1"> <PARAM NAME="EnableFullScreenControls" VALUE="-1"> <PARAM NAME="EnableTracker" VALUE="-1"> <PARAM NAME="Filename" VALUE="E:\mengxianhui\Mp3\AVSEQ03.DAT"> <PARAM NAME="InvokeURLs" VALUE="-1"> <PARAM NAME="Language" VALUE="-1"> <PARAM NAME="Mute" VALUE="0"> <PARAM NAME="fullScreen" VALUE="true"> <PARAM NAME="PlayCount" VALUE="-1"> <PARAM NAME="PreviewMode" VALUE="0"> <PARAM NAME="Rate" VALUE="1"> <PARAM NAME="SAMILang" VALUE=""> <PARAM NAME="SAMIStyle" VALUE=""> <PARAM NAME="SAMIFileName" VALUE=""> <PARAM NAME="SelectionStart" VALUE="-1"> <PARAM NAME="SelectionEnd" VALUE="-1"> <PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"> <PARAM NAME="SendWarningEvents" VALUE="-1"> <PARAM NAME="SendErrorEvents" VALUE="-1"> <PARAM NAME="SendKeyboardEvents" VALUE="0"> <PARAM NAME="SendMouseClickEvents" VALUE="-1"> <PARAM NAME="SendMouseMoveEvents" VALUE="-1"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"> <PARAM NAME="ShowCaptioning" VALUE="0"> <PARAM NAME="ShowControls" VALUE="-1"> <PARAM NAME="ShowAudioControls" VALUE="-1"> <PARAM NAME="ShowDisplay" VALUE="-1"> <PARAM NAME="ShowGotoBar" VALUE="0"> <PARAM NAME="ShowPositionControls" VALUE="-1"> <PARAM NAME="ShowStatusBar" VALUE="-1"> <PARAM NAME="ShowTracker" VALUE="-1"> <PARAM NAME="TransparentAtStart" VALUE="-1"> <PARAM NAME="VideoBorderWidth" VALUE="0"> <PARAM NAME="VideoBorderColor" VALUE="0"> <PARAM NAME="VideoBorder3D" VALUE="0"> <PARAM NAME="Volume" VALUE="-450"> <PARAM NAME="WindowlessVideo" VALUE="0"> <EMBED type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp" filename="http://colorweb.go.163.com/play.asx" name="NSOPlay" width="286" height="172" DefaultFrame="content" AnimationAtStart="-1" AutoRewind="-1" AutoStart="-1" Autosize="-1" ControlType="-1" DisplaySize="6" ShowAudioControls="-1" ShowControls="-1" ShowDisplay="-1" ShowGotoBar="-1" ShowPositionControls="-1" ShowStatusBar="-1" ShowTracker="-1" TransparentAtStart="-1"> </EMBED> </OBJECT><br><input onclick="document.all.NSOPlay.pause()" type=button value="停止"><input onclick="document.all.NSOPlay.AutoSize='-1';document.all.NSOPlay.fullScreen='true'" type=button value="fillscreen"><input onclick="document.all.NSOPlay.Play()" type=button value="播放"><input onclick="document.all.NSOPlay.ShowStatusBar='0'" type=button value="没有状态栏"><input onclick="document.all.NSOPlay.Volume='-1000'" type=button value="减小声音"><input onclick="document.all.NSOPlay.Volume='0'" type=button value="增大声音"><input onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()" type=button value="回放"><input onclick="document.all.NSOPlay.Previous()" type=button value="上一首"><input onclick="document.all.NSOPlay.Next()" type=button value="下一首"><input onclick="document.all.NSOPlay.FastForward()" type=button value="快进"><input onclick="sound_up()" type=button value="+"><script>function sound_up(){ volume=document.all.NSOPlay.volume-1000; alert(volume) document.all.NSOPlay.volume=volume;}</script></body> 这段代码的执行结果很诡异,还望高手不吝赐教! 请问大家有没有javascript做的ajax表格控件 关于Google浏览器 页面设置 的问题 消息框弹不出来! 那些javascript写法不是符合w3c的标准的写法! 错哪了,求助! 为什么这个树型菜单初始状态是打开状态,而不是收缩状态(有相关代码) 如何做一个比较好看一点的标签页 在线等:select的问题,有点难 我想用JAVASCRIPT连接并存取操作数据库行不行? 谁对javascipt的脚本有加密的好方法,大家研究一下, 如何进行客户端组件编程?
play() //播放就可以了,没有停止的概念,
如果要换首歌,我使用的是:
bgMusic.outerHTML="<EMBED id=bgMusic src="+newURL+" loop=true autostart=false hidden=true>";bgMusic 就是 一个EMBED
<embed id="MediaPlaye" name="MediaPlaye" src='31.mp3' autostart=1 loop=1></embed>
<input type=button onclick="document.embeds('MediaPlaye').stop()" value=stop>
<input type=button onclick="document.embeds('MediaPlaye').play()" value=play>
</body>
function dostop()
{
MPlayer.Stop();
MPlayer.CurrentPosition=0;
}
//-->MPlayer为embed的id
document.embeds('MediaPlaye')写法的问题。
建议使用
mediaplayer
<body>
<OBJECT classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 height=256 id="NSOPlay" type=application/x-oleobject width=245 standby="Connecting with Live Event. Please wait patiently...">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="-1">
<PARAM NAME="Balance" VALUE="-1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="-1">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="-1">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="-1">
<PARAM NAME="DefaultFrame" VALUE="content">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="-1">
<PARAM NAME="DisplaySize" VALUE="-1">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="-1">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="Filename" VALUE="E:\mengxianhui\Mp3\AVSEQ03.DAT">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="fullScreen" VALUE="true">
<PARAM NAME="PlayCount" VALUE="-1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="-1">
<PARAM NAME="SendMouseMoveEvents" VALUE="-1">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="-1">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowStatusBar" VALUE="-1">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="-450">
<PARAM NAME="WindowlessVideo" VALUE="0">
<EMBED type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp" filename="http://colorweb.go.163.com/play.asx"
name="NSOPlay"
width="286"
height="172"
DefaultFrame="content"
AnimationAtStart="-1"
AutoRewind="-1"
AutoStart="-1"
Autosize="-1"
ControlType="-1"
DisplaySize="6"
ShowAudioControls="-1"
ShowControls="-1"
ShowDisplay="-1"
ShowGotoBar="-1"
ShowPositionControls="-1"
ShowStatusBar="-1"
ShowTracker="-1"
TransparentAtStart="-1">
</EMBED>
</OBJECT>
<br>
<input onclick="document.all.NSOPlay.pause()" type=button value="Í£Ö¹">
<input onclick="document.all.NSOPlay.AutoSize='-1';document.all.NSOPlay.fullScreen='true'" type=button value="fillscreen">
<input onclick="document.all.NSOPlay.Play()" type=button value="²¥·Å">
<input onclick="document.all.NSOPlay.ShowStatusBar='0'" type=button value="ûÓÐ״̬À¸">
<input onclick="document.all.NSOPlay.Volume='-1000'" type=button value="¼õСÉùÒô">
<input onclick="document.all.NSOPlay.Volume='0'" type=button value="Ôö´óÉùÒô">
<input onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()" type=button value="»Ø·Å">
<input onclick="document.all.NSOPlay.Previous()" type=button value="ÉÏÒ»Ê×">
<input onclick="document.all.NSOPlay.Next()" type=button value="ÏÂÒ»Ê×">
<input onclick="document.all.NSOPlay.FastForward()" type=button value="¿ì½ø">
<input onclick="sound_up()" type=button value="+">
<script>
function sound_up()
{
volume=document.all.NSOPlay.volume-1000;
alert(volume)
document.all.NSOPlay.volume=volume;
}</script>
</body>
<OBJECT classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 height=256 id="NSOPlay" type=application/x-oleobject width=245 standby="Connecting with Live Event. Please wait patiently...">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="-1">
<PARAM NAME="Balance" VALUE="-1">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="-1">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="-1">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="-1">
<PARAM NAME="DefaultFrame" VALUE="content">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="-1">
<PARAM NAME="DisplaySize" VALUE="-1">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="-1">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="Filename" VALUE="E:\mengxianhui\Mp3\AVSEQ03.DAT">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="fullScreen" VALUE="true">
<PARAM NAME="PlayCount" VALUE="-1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="-1">
<PARAM NAME="SendMouseMoveEvents" VALUE="-1">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="-1">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowStatusBar" VALUE="-1">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="-450">
<PARAM NAME="WindowlessVideo" VALUE="0">
<EMBED type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp" filename="http://colorweb.go.163.com/play.asx"
name="NSOPlay"
width="286"
height="172"
DefaultFrame="content"
AnimationAtStart="-1"
AutoRewind="-1"
AutoStart="-1"
Autosize="-1"
ControlType="-1"
DisplaySize="6"
ShowAudioControls="-1"
ShowControls="-1"
ShowDisplay="-1"
ShowGotoBar="-1"
ShowPositionControls="-1"
ShowStatusBar="-1"
ShowTracker="-1"
TransparentAtStart="-1">
</EMBED>
</OBJECT>
<br>
<input onclick="document.all.NSOPlay.pause()" type=button value="停止">
<input onclick="document.all.NSOPlay.AutoSize='-1';document.all.NSOPlay.fullScreen='true'" type=button value="fillscreen">
<input onclick="document.all.NSOPlay.Play()" type=button value="播放">
<input onclick="document.all.NSOPlay.ShowStatusBar='0'" type=button value="没有状态栏">
<input onclick="document.all.NSOPlay.Volume='-1000'" type=button value="减小声音">
<input onclick="document.all.NSOPlay.Volume='0'" type=button value="增大声音">
<input onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()" type=button value="回放">
<input onclick="document.all.NSOPlay.Previous()" type=button value="上一首">
<input onclick="document.all.NSOPlay.Next()" type=button value="下一首">
<input onclick="document.all.NSOPlay.FastForward()" type=button value="快进">
<input onclick="sound_up()" type=button value="+">
<script>
function sound_up()
{
volume=document.all.NSOPlay.volume-1000;
alert(volume)
document.all.NSOPlay.volume=volume;
}</script>
</body>