Hey guys, 
First of all I would like to say hello to everybody, this is my first post and first time here, sorry about my english, I'm brazillian.
I'm not an expert at Javascript and those scripts were found in web.
I'm building my webpage and I'm using two scripts to load the pictures before the page shows up.
The first script loads all images in my website.
<body onLoad="waitPreloadPage();">
Quote:
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
function waitPreloadPage() {
if (document.getElementById){
document.getElementById('prepage').style.visibilit y='hidden';
}else{
if (document.layers){
document.prepage.visibility = 'hidden';
}
else {
document.all.prepage.style.visibility = 'hidden';
}
}
}
</SCRIPT>
|
The second script loads the rollover images before they are asked to show up. (Dreamweaver feature)
<body onLoad="MM_preloadImages('images/index2_14.gif','images/index2_15.gif','images/index2_16.gif')">
My problem is that I cannot use both at same time.
I was trying like:
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="waitPreloadPage();" onLoad="MM_preloadImages('images/index2_14.gif','images/index2_15.gif','images/index2_16.gif')">
And the first script is working and the second isn't.
Would it be because I'm using the onLoad="" function two times?
What can I do to make them both work together?
|