G'day,
I've managed to have success getting the drop down menu working on
The Scuba Doctor web site with IE7, IE6 and Firefox.
This web site is the closest I have to the standard Mollio template.
This web site uses the following DOCTYPE and html statements...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
The stylesheet links and Javascript statements in the head section are now...
<link rel="stylesheet" type="text/css"
href="templates/mollio/css/main.css" media="screen" />
<link rel="stylesheet" type="text/css"
href="templates/mollio/css/print.css" media="print" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css"
href="templates/mollio/css/ie6_or_less.css" />
<![endif]-->
<!--[if lte IE 7]>
<script type="text/javascript"
src="templates/mollio/js/common.js"></script>
<![endif]-->
My common.js file is now...
/*
son of suckerfish menu script from:
http://www.htmldog.com/articles/suckerfish/dropdowns/
*/
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
this.style.zIndex=8200; //this line added to force flyout to be above relatively positioned stuff in IE
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
Then I changed the following in main.css from...
#nav li:hover ul,
#nav li.sfhover ul{
left:0;
z-index:8009;
}
to...
#nav li:hover ul,
#nav li.sfhover ul{
left:0;
z-index:8009;
min-height:0;
}
Please note that my z-index values in main.css and common.js have been changed so that they work with my implementation of Lightbox 2 JS. Yours may need to be different.
Best Regards, Lloyd Borrett.