Is there a way to achieve an effect that is somewhere between using display: none
and visibility: hidden
? Specifically, I am trying to have a div element (containing flash content) loaded but not displayed on the page.
Just for clarification: I have embedded a flash object using swfobject.embedSWF
within this div. When I use JavaScript to switch the display
property from block
to none
and then back from none
to block
, it behaves differently across different browsers:
In Internet Explorer, it functions as intended - changing the display back to block
retains the object. However, in Chrome and Firefox, it reloads like it did during the initial call of swfobject.embedSWF
.