开发者

Rendering swf files in html with/Without swfobject

开发者 https://www.devze.com 2023-02-09 04:16 出处:网络
Without including swfobject.js can only swf files be loaded through html.And if so is there a common tag for all the browsers.

Without including swfobject.js can only swf files be loaded through html.And if so is there a common tag for all the browsers.

<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie开发者_如何学Go">
<param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
<embed align=""
       type="application/x-shockwave-flash"
       name="myMovieName"
       bgcolor="#FFFFFF"
       quality="high"
       src="movie.swf"
       href="movie.swf">
</object>


The combination you posted, <object> with nested <embed> should work for all browsers. There isn't one tag that works for all browsers. See this document for details.

I would still recommend swfobject, though.


If the implementation uses "smarty," which doesn't take {} especially during the variable declaration, this way is the only way.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号