lnvrt
lnvrt

Reputation: 732

IE7: Flash playing in hidden divs

The scenario 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"?

Upvotes: 0

Views: 499

Answers (2)

Kenji Baheux
Kenji Baheux

Reputation: 596

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>

Upvotes: 3

はると
はると

Reputation: 1499

Do you use display:none;?

Upvotes: 0

Related Questions