PS:SWFObject是一个JS库,用来加载SWF文件。
今天下载了SWFObject的最新版本2.2,发现以前的new SWFObject()的方法已经无法使用了。
需要使用swfobject.embedSWF()。下面是一个例子:
<script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> var flashvars = false; var params = {}; params.quality = "high"; params.allowFullScreen = "true"; params.FlashVars = "vcastr_file=video/ex.flv&LogoText=wj&BufferTime=3"; swfobject.embedSWF("flvplayer.swf", "myContent", "300", "200", "9.0.0", "expressInstall.swf", flashvars, params); </script>