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

怎么用javascript控制media在指定的时间后stop
我在网页里面嵌入了下面一段代码,我想在页面载入后的10秒钟后把AutoStart的值设置成flase,这个可以实现吗?

<OBJECT   WIDTH= "478 "   HEIGHT= "338 "   CLASSID= "CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 "   CODEBASE= "http://activex.microsoft.com/activex/controls/mplayer/en/   nsmp2inf.cab#Version=6,4,5,715 "   STANDBY= "Loading   Microsoft?   Windows   Media?   Player   components... "   TYPE= "application/x-oleobject ">  
<PARAM   NAME= "FileName "   VALUE= "http:\\localhost\vedios\ <%=fileType%> \ <%=fileNames%> \ <%=linkFile%> . <%=fileformat%> ">  
<PARAM   NAME= "ShowControls "   VALUE= "true ">  
<PARAM   NAME= "AutoRewind "   VALUE= "true ">  
<PARAM   NAME= "AutoStart "   VALUE= "true ">  
</OBJECT>

------解决方案--------------------
setTimeout(function(){...},10000)
不知道行不行.