pafke
11-12-2010, 02:47 PM
Hi,
I've got an html page that has it's overflow hidden with integrated css, now I want to use javascript to set overflow to hidden as soon as an swf is finished.
My code is
function hidelayer(lay) {
document.getElementByName('body').style.overflow = 'visible';
}
and I'm calling this function from flash with: getURL("javascript:hidelayer('newlayer');"); in the last frame.
But the overflow stays hidden, so apparantly my javascript is wrong.
The overflow is set to hidden in the body tag btw.
Can anyone help me?
I've got an html page that has it's overflow hidden with integrated css, now I want to use javascript to set overflow to hidden as soon as an swf is finished.
My code is
function hidelayer(lay) {
document.getElementByName('body').style.overflow = 'visible';
}
and I'm calling this function from flash with: getURL("javascript:hidelayer('newlayer');"); in the last frame.
But the overflow stays hidden, so apparantly my javascript is wrong.
The overflow is set to hidden in the body tag btw.
Can anyone help me?