Mollio Dropdown Main Menu and IE7
#16
Posted 21 November 2006 - 03:53 PM
#17
Posted 22 November 2006 - 12:20 PM
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.
#18
Posted 19 January 2007 - 05:17 PM
It works fine!
Many thanks to You!!!
#19
#20
Posted 12 March 2007 - 06:36 PM
thanks a lot. Just took the time to find why this problem was occurring, took me five minutes to have a solution... thanks to you...
#21
Posted 16 March 2007 - 10:33 AM
#22
Posted 20 March 2007 - 09:01 PM
lloyd_borrett, on Nov 1 2006, 05:16 AM, said:
Having used the Mollio Dropdown Main Menu on two sites, I've now realised that they don't work properly with IE7. The drop down menu will not disappear like it should.
This menu is actually an implementation of the Son of Suckerfish Dropdown menu.
I've seen and tried multiple variations of two supposed solutions to the problem, without any success as yet.
You can see the problem at www.scubadoctor.com.au and www.pragmatictraining.com.au.
I'm wondering if anyone out there has tackled this issue and come up with a solution that works.
Best Regards, Lloyd Borrett.
Since IE7 has come out, a lot of people have noticed that Suckerfish dropdown menus are allergic to it. The principal problem is that once they've dropped down, they refuse to scroll back up again. This affects a lot of Joomla sites using Suckerfish variations and also the Extended Menu module.
The solution is thankfully, simple. If your list menu ID is called "topmenu", you only have to add the following lines of code to your css:
#topmenu li:hover, #topmenu li.hover {
position:static;
}
Thanks to Built from Source for the original tip and to Sam from Site Coffee for Joomla implementation. I hope this is helpful because I know I will need a lot of help when I tackle it.
#23
Posted 27 March 2007 - 11:04 AM
****several minutes later*** Yes it does work if you are sick of drop-down menus. It removes the drop down so you have to navigate from the secondary menu. I don't know what it looks like in IE6 yet!
Edited by Cris D., 27 March 2007 - 11:21 AM.
#24
Posted 27 March 2007 - 12:33 PM
Cris D., on Mar 27 2007, 07:04 AM, said:
****several minutes later*** Yes it does work if you are sick of drop-down menus. It removes the drop down so you have to navigate from the secondary menu. I don't know what it looks like in IE6 yet!
The below site has not had any modifications and works the same in IE7 as it did in IE6. Attached is the javascript file and the MollioMainMenu Snippet. I'm still using version 0.6.1 Final (Prelude)
on this website.
__MollioMainMenu__.txt 4K
16 downloads
common.js.txt 865bytes
13 downloadshttp://www.trophygahunts.com/
Karen
#25
Posted 29 March 2007 - 10:36 AM
katherholt, on Mar 27 2007, 10:33 PM, said:
#26
Posted 29 March 2007 - 12:53 PM
Cris D., on Mar 29 2007, 06:36 AM, said:
Karen
#27
Posted 10 April 2007 - 06:30 PM
katherholt, on Mar 29 2007, 02:53 PM, said:
Karen
Another solution.....
I tried this and everything works fine (with IE 7).
The change in the javascript is also (I hope) a solution for IE 6.
Tested in IE 7/FF 2.0.0.3 and Opera 9.10
http://groups.google.com/group/Mollio/brow...a6769c758ac411b
link testsite: www.ictenzo.com/etomite/
#28
Posted 11 April 2007 - 06:48 AM
Change this line in main.css Mollio template
#nav li:hover ul, #nav li.sfhover ul {left: 0;z-index:99999}
to
#nav li:hover ul, #nav li.sfhover ul {left: 0;z-index:99999;
min-height: 0;}
I've tested the change in main.css on a new installation with IE 7/Opera 9/Firefox 2
I didn't change the common.js file.
Can anyone test this solution with IE5 and IE6? link: www.ictenzo.com/etomite
Thanks
#29
Posted 02 May 2007 - 01:51 AM
#30
Posted 02 May 2007 - 06:37 AM
The Scuba Site was using a variation of the Mollio Templates I believe
#31
Posted 04 May 2007 - 08:49 AM
Ted Donkers, on Apr 11 2007, 08:48 AM, said:
Can anyone test this solution with IE5 and IE6? link: www.ictenzo.com/etomite
[edit]now at home: also IE7 and Opera 9 look fine.[/edit]
[edit2]ah, you tested those yourself too.[/edit2]
Edited by vw53a, 04 May 2007 - 05:54 PM.
#32
Posted 05 November 2007 - 03:09 PM
vw53a, on May 4 2007, 11:49 AM, said:
[edit]now at home: also IE7 and Opera 9 look fine.[/edit]
[edit2]ah, you tested those yourself too.[/edit2]
If I change,
#nav li:hover ul, #nav li.sfhover ul {left: 0;z-index:99999}
to
#nav li:hover ul, #nav li.sfhover ul {left: 0;z-index:99999;
min-height: 0;}
in .css, the menu works fine in IE7 but not in IE6....
Any solutions?
#33
Posted 18 January 2008 - 07:13 PM
#34
Posted 18 January 2008 - 07:59 PM
hazardouspunch, on Jan 18 2008, 02:13 PM, said:
I don't know about where you're geographically located but almost 100% of my customers use IE7... The few who don't are holding out with IE6 as long as possible... Only a very sparse few are using Firefox... None use Opera...
From a developers standpoint, I'd love to be able to not worry about who uses IE, but in the real world where people come from every corner of it to view sites, I have no choice but to account for pathetic the IE browser...
#35
Posted 18 January 2008 - 08:13 PM
Ralph, on Jan 18 2008, 02:59 PM, said:
From a developers standpoint, I'd love to be able to not worry about who uses IE, but in the real world where people come from every corner of it to view sites, I have no choice but to account for pathetic the IE browser...
As a rule, I steer everyone away from dropdown menus. You'll save yourself and everyone else so much headache.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











