开发者

Overflow hidden and Flash content in IE 8

开发者 https://www.devze.com 2022-12-08 13:51 出处:网络
I\'m building a Flash banner ad to be displayed on a client\'s site. When the user hovers over the ad, the Flash movie expands by increasing the height and width of the flash object.

I'm building a Flash banner ad to be displayed on a client's site. When the user hovers over the ad, the Flash movie expands by increasing the height and width of the flash object.

The problem is that the client is using overflow:hidden all over their site, and my banner ad is contained within a div that is styled with overflow:hidden.

When the flash movie expands it gets clipped. This only happens in IE 8, all other browsers (at least IE 7 and FF) do not clip the flash mo开发者_运维问答vie. I tried explicitly using wmode=window but that doesn't seem to do anything. Maybe IE 8 is being standards compliant and doing the right thing here, but I just need this to work!

Any ideas on how to get the flash content to expand out of the div without changing the styles (not sure what would happen if I changed the overflow:hidden style on the client's site).

Thanks!


To isolate the banner's style from the rest of the site, you might try putting it in an iframe with a 0px border. The trick is that then the iframe has to big enough to accommodate the expanding flash object.


You cannot do it without changing the style. The way banner ads work is that they use Flash and JavaScript to trigger the change in styles. So you would have two styles, one of the collapse and another for the expanded states, Flash would make the call to the JavaScript and it would change the style.


when the flash object was wider than the DIV and DIV is overflow:hidden to limit the flash object to the sidebar

may embedded flash object still overflowed into the next DIV.

the issue is related to the embedded object and that wmode=”transparent” parameter needs to be included.

<embed
   src="your-swf-url-here"
   width="xx"
   height="xx"
   wmode="transparent"
/> 
0

精彩评论

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