开发者

IE7: Flash playing in hidden divs

开发者 https://www.devze.com 2022-12-17 05:41 出处:网络
The scenari开发者_C百科o is a bunch of divs with flash content inside; clicking on a menu will show / hide these flash-filled divs. Problem is IE7 plays these divs before I \"show\" them. How can I ma

The scenari开发者_C百科o is a bunch of divs with flash content inside; clicking on a menu will show / hide these flash-filled divs. Problem is IE7 plays these divs before I "show" them. How can I make sure that IE7 doesn't start the Flash movie until after the div has been "shown"?


Just an idea: maybe you could set your flash embed element when you modify the div's visibility (with JavaScript)?

Something like:

<script>
function showFlipFlopDiv() {
  someDiv = document.getElementById("flipFlopDiv");
  someDiv.style.visibility="visible";
  someDiv.innerHTML='<object width="[...]</object>';
}
</script>


Do you use display:none;?

0

精彩评论

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

关注公众号