简体   繁体   中英

HTML5 Fallback for swf gif (swf in <img/> tag)

I've code like this

<div style="text-align:center; margin-bottom: 10px;">
    <iframe frameborder="0" height="150" scrolling="no"         
           src="/img/iness_banner150x150_2016_podpora.swf" width="150">
    </iframe>
</div>

and I need to provide html5 fallback for that and I'm quite not sure how to do that, it's not a video but a gif rahter. I've been searching for this but did not find anything satisfying.

I think that you can do that like this :

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" height="150">
    <param name="movie" value="/img/iness_banner150x150_2016_podpora.swf">
    <object type="application/x-shockwave-flash" width="150" height="150">
        <param name="movie" value="/img/iness_banner150x150_2016_podpora.swf">
        <iframe src="/img/your_image.gif" width="150" height="150" frameBorder="0" scrolling="no"></iframe>
    </object>
</object>

Hope that can help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM