The script is adding unwanted gap on page top, preventing a div on the top to be placed on page top without any margin. I believe this problem is because of this line:Why is this line there outside of a function, can it be placed inside a function so this div is not loaded by default. I know this is weird problem (it doesn't occur at a different page on my site, or at the DD sample). But I have taken out every piece of code from the page and tested it, and the addition of this script is the one causing the that extra unwanted margin.Code:document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
P.S. The problem only occurs in IE. Page loads fine in firefox.



Reply With Quote


Bookmarks