ira19
07-21-2009, 09:15 PM
1) Script Title:
Splash Page
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm
3) Describe problem:
I want the skip intro button within the iframe.
have used the following code to close the iframe:
In the iframe html page
<a href="javascript: window.parent.closeIframe()">Skip Intro</a>
On the parent window :
function closeIframe()
{
var iframe = document.getElementById('slashpage');
iframe.parentNode.removeChild(iframe);
var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
standardbody.style.overflow="auto";
}
This closes the iframe but standardbody.style.overflow="auto"; makes the scrollbars behave oddly in the parent window.
Please help...
Splash Page
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm
3) Describe problem:
I want the skip intro button within the iframe.
have used the following code to close the iframe:
In the iframe html page
<a href="javascript: window.parent.closeIframe()">Skip Intro</a>
On the parent window :
function closeIframe()
{
var iframe = document.getElementById('slashpage');
iframe.parentNode.removeChild(iframe);
var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
standardbody.style.overflow="auto";
}
This closes the iframe but standardbody.style.overflow="auto"; makes the scrollbars behave oddly in the parent window.
Please help...