开发者

What is wrong with this embed code?

开发者 https://www.devze.com 2023-03-29 21:23 出处:网络
This is the embed code for .swfs I got from Adobe\'s site: <obj开发者_C百科ect classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"620\" height=\"480\" id=\"indexslideshow\">

This is the embed code for .swfs I got from Adobe's site:

<obj开发者_C百科ect classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="620" height="480" id="indexslideshow">
<param name="movie" value="images/indexslideshow.swf"/>
<param name="wmode" value="transparent"/>
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="images/indexslideshow.swf" width="620" height="480">
    <param name="movie" value="images/indexslideshow.swf"/>
    <param name="wmode" value="transparent"/>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/></a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

It is adding extra space to the bottom of my swf in Mozilla Firefox, but works perfectly in IE. Does anyone know how to correct this?


Maybe adding a closing tag will help?

Add another </object> to the end of your block of code.

Also, try validating your HTML with the W3 HTML validator.


Is it a margin issue? Try wrapping your code in this:

<div style="margin:0; padding:0;">
...
</div>

and see if that tightens up the margin. If not, you could try adding a height to the div tag that matches your swf height:

<div style="margin:0; padding:0; height:480px;">
...
</div>
0

精彩评论

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

关注公众号