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
-~----------~----~----~----~------~----~------~--~---