Closed GoogleCodeExporter closed 9 years ago
Same issue on:
Opera
Version: 10.63
Build: 3516
Plattform: Win32
OS: WinXP
What's wrong:
Upon page load, there is a white box visible, which then disappears.
I traced it back to the "testPlayerVersion" method, where a new OBJECT element
is created and added to the DOM, without hiding it.
Fix:
hide the element
Fix example:
var b = doc.getElementsByTagName("body")[0];
var o = createElement(OBJECT);
o.setAttribute("type", FLASH_MIME_TYPE);
o.style.display = "none"; /* THIS IS THE FIX */
Original comment by smilingr...@googlemail.com
on 26 Oct 2010 at 3:09
testPlayerVersion never appends the element to the page, so it should never be
visible.
It's possible what you're seeing is the result of swfobject's CSS manipulation.
Try using swfobject.switchOffAutoHideShow() and see if it makes a difference.
http://code.google.com/p/swfobject/wiki/api#swfobject.switchOffAutoHideShow%28%2
9
Original comment by platelu...@gmail.com
on 8 Nov 2010 at 5:12
I take that back -- testPlayerVersion *does* append an *empty* <object> to the
page. Empty Flash objects display as white blocks.
However, the solution you describe may not be feasible, as hidden Flash objects
are not accessible via JavaScript in some browsers. We will need to investigate.
Original comment by platelu...@gmail.com
on 8 Nov 2010 at 5:58
I believe this issue is addressed by issue 357, though the proposed solution
here is much simpler.
Original comment by platelu...@gmail.com
on 1 Jun 2011 at 4:30
Original issue reported on code.google.com by
mar...@minimum.se
on 20 May 2010 at 11:46