开发者

Is it possible to embed swf movie in HTML without creating a separate file?

开发者 https://www.devze.com 2023-01-26 13:05 出处:网络
Is there a solution, similar to img data:image/gif;base64..., that allows to embed an swf movie in a 开发者_高级运维HTML page without having to create a new swf file and link it in the src attribute?I

Is there a solution, similar to img data:image/gif;base64..., that allows to embed an swf movie in a 开发者_高级运维HTML page without having to create a new swf file and link it in the src attribute?


It might be possible in Firefox using the data attribute as the embed's src: Try it out.

It will definitely not work in Internet Explorer <= 8, because data: URIs are allowed only for image data there. Not sure about IE 9, some limits have been lifted in the Beta.

Opera will also fail in most cases, because the maximum size of data: URIs is limited to 4 kilobytes there.

I am not aware of a cross-browser way to do this that does not require a separate resource.

MDC docs on data: URIs

0

精彩评论

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