在HTML5中嵌入一个shockwave文件 [英] Embedding a shockwave file in HTML5

查看:148
本文介绍了在HTML5中嵌入一个shockwave文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在HTML5中嵌入shockwave文件的最佳方式是什么?



我一直在使用以下内容:

 < object width =100%height =100%classid =clsid:166B1BCA-3F9C-11CF-8075-444553540000codebase = http://download.adobe.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0\"> 
< param name =srcvalue =shocwave / file.dcr/>
< embed src =shocwave / file.dcrwidth =100%height =100%type =application / x-director/>
< / object>

但它似乎已停止工作,因此我认为现在某些内容已过时?

如果您直接尝试代码库链接,那么它只会显示一个错误,这是否会成为问题? http://download.adobe .com / pub / shockwave / cabs / director / sw.cab#version = 8,5,0,0



证明文档非常复杂如何在html5中嵌入shockwave

p> 对象标记已在HTML5中进行了修改,现在是嵌入shockwave文件的正确方法:

 < object data =shockwave / file.dcrtype =application / x-directorwidth =100height =100>< / object> 






参考: http://www.w3schools.com/TAGS/tag_object.asp


What's the best way to go about embedding a shockwave file in HTML5?

I've been using the following for some time:

<object width="100%" height="100%" classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.adobe.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0">
    <param name="src" value="shocwave/file.dcr" />
    <embed src="shocwave/file.dcr" width="100%" height="100%" type="application/x-director" />
</object>

but it appears to have stopped working so I presume something is now outdated?

If you try the codebase link direct then it just displays an error, could this be the issue? http://download.adobe.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0

It's proving quite tricky to find documentation on embedding shockwave files though.

解决方案

How to embed shockwave in html5

The object tag has been modified in HTML5 and this is now the correct way to embed shockwave files:

<object data="shockwave/file.dcr" type="application/x-director" width="100" height="100"></object>


Reference: http://www.w3schools.com/TAGS/tag_object.asp

这篇关于在HTML5中嵌入一个shockwave文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆