使用/不使用 swfobject 在 html 中渲染 swf 文件
如果不包含 swfobject.js 只能通过 html 加载 swf 文件。如果是这样,是否有一个适用于所有浏览器的通用标记。
<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<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>
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">
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您发布的组合
不过,我仍然推荐 swfobject。
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.
如果实现使用“smarty”,特别是在变量声明期间不使用 {},则这种方式是唯一的方式。
If the implementation uses "smarty," which doesn't take {} especially during the variable declaration, this way is the only way.