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
精彩评论