日期:2014-05-16  浏览次数:20428 次

关于Javascript控制播放器问题.
我这有一个脚本(名字随便定义的)
<script   type= "text/javascript ">
                function   sa(){
                var   qq   =   document.getElementById( "musicurl ");
                qq.Value= "http://ykwsbmb0.blog.whnews.cn/blogatca/Mon_0702/3834_8x4S1pVUMnqDcug.mp3 ";
                alert(qq.Value);
                }
                </script>


这是播放器的内容:
事件写onload里了.


<OBJECT   align=middle   class=OBJECT   classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95   height=70   id=MediaPlayer   width=500   VIEWASTEXT>
<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= "0 ">
<PARAM   NAME= "Balance "   VALUE= "0 ">
<PARAM   NAME= "BaseURL "   VALUE= " ">
<PARAM   NAME= "BufferingTime "   VALUE= "5 ">
<PARAM   NAME= "CaptioningID "   VALUE= " ">
<PARAM   NAME= "ClickToPlay "   VALUE= "-1 ">
<PARAM   NAME= "CursorType "   VALUE= "0 ">
<PARAM   NAME= "CurrentPosition "   VALUE= "0 ">
<PARAM   NAME= "CurrentMarker "   VALUE= "0 ">
<PARAM   NAME= "DefaultFrame "   VALUE= " ">
<PARAM   NAME= "DisplayBackColor "   VALUE= "0 ">
<PARAM   NAME= "DisplayForeColor "   VALUE= "16777215 ">
<PARAM   NAME= "DisplayMode "   VALUE= "0 ">
<PARAM   NAME= "DisplaySize "   VALUE= "4 ">
<PARAM   NAME= "Enabled "   VALUE= "-1 ">
<PARAM   NAME= "EnableContextMenu "   VALUE= "-1 ">
<PARAM   NAME= "EnablePositionControls "   VALUE= "-1 ">
<PARAM   NAME= "EnableFullScreenControls "   VALUE= "0 ">
<PARAM   NAME= "EnableTracker "   VALUE= "-1 ">
<PARAM   id= "musicurl "   NAME= "Filename "   VALUE= " ">
<PARAM   NAME= "InvokeURLs "   VALUE= "-1 ">
<PARAM   NAME= "Language "   VALUE= "-1 ">
<PARAM   NAME= "Mute "   VALUE= "0 ">
<PARAM   NAME= "PlayCount "   VALUE= "1 ">
<PARAM   NAME= "PreviewMode "   VALUE= "0 ">
<PARAM   NAME= "Rate "   VALUE= "1 ">
<P