Thanks Aran. The solution was more complicated than I thought - but the sample was easy to follow.
Cheers! .. On 19/08/2009, at 2:27 PM, Aran Rhee wrote: Have a look at the fullscreen with minimum size example from the test suite ( http://code.google.com/p/swfobject/wiki/test_suite) : http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic_fullbrowserflash_adv.html This will show scrollbars etc, and has proper checking for document.documentElement availability etc (which your code doesn't) Cheers, Aran On Tue, Aug 18, 2009 at 8:27 PM, urban232 <[email protected]> wrote: hi, I'm using SWFObject v2.1 to embed a full browser swf (width & height = 100%). When it embeds, I get a vertical scrollbar in Safari & Firefox. All is ok if I set overflow:hidden unless the swf is not embedded and then of course if the window is too small for the alt content, I want the scrollbars to show. So in my script code: if (swfobject.hasFlashPlayerVersion("10.0.0")) { swfobject.embedSWF... ... document.body.style.overflow = "hidden"; }else{ ... document.body.style.overflow = "auto"; } But it aint working. If I create a button like so it works fine: <input id="myButton2" type="button" value="off" onclick="document.body.style.overflow = 'hidden';"/> Can anyone help me out here? cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
