演示 | ||||||||||
|
||||||||||
示例代码
|
||||||||||
|
||||||||||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="422" width="680" id="02bfeb00e2ba940698c54cdf517aa9b6_0" >
<param name="movie" value="http://play.polyv.net/videos/02bfeb00e2ba940698c54cdf517aa9b6_0.swf" /> <param name="allowscriptaccess" value="always" /> <param name="allowNetworking" value="all" /> <param name="allowFullScreen" value="true" /> <embed allowfullscreen="true" allowscriptaccess="always" allowNetworking="all" height="422" src="http://play.polyv.net/videos/02bfeb00e2ba940698c54cdf517aa9b6_0.swf" type="application/x-shockwave-flash" width="680" name="02bfeb00e2ba940698c54cdf517aa9b6_0" > </embed> </object> <br/> <input type="submit" name="Submit" value="视频播放期间,结束播放并显示结束画面" onclick="stopVideo()" /> <script type="text/javascript"> function getPlayer(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { var reObj=window[movieName]; try { if(reObj.length>0) { return reObj[0]; }
else
{
return reObj;
}
}catch(e){ } return document[movieName]; } else { return document[movieName]; } } function stopVideo() { var player=getPlayer("02bfeb00e2ba940698c54cdf517aa9b6_0"); if(player!=undefined && player.j2s_stopVideo!=undefined) { player.j2s_stopVideo(); } } </script> |