Hi,
Im having trouble with a dropdown menu and a javascript preloader.
The site was working fine until I added this preloader to it so that the entire page loaded at the same time. The menus at the bottom used to drop up as you can see on this page:
http://www.arjanbaagh.com/index.php
but now I've added the preloader the menus drop down?
http://www.arjanbaagh.com/aboutus-concept.php
heres the script that I've added as the preloader:
in the head:
and start of body:Code:<script language="javascript" type="text/javascript"> function showpage() { document.getElementById('loader').style.display = "none"; document.getElementById('main').style.display = "block"; } </script>
and then I just put a closing div at the bottom of the body so all of the content is inside the Div that should be preloaded.Code:<body onload="showpage();"> <div style="height:100%; width:100%; display:block;" id="loader"> </div> <div style="height:100%; width:100%; display:none;" id="main">
Im guessing that there is some conflict in the javascript but just cant figure out what it is?
Has anyone got any ideas or different ways I can preload the images?
Thanks