S
Ste
Hi there,
I'm having a few issues getting a 'Son of Suckerfish' dropdown menu
working in IE6 so am just posting here for some help please.
Here's the article I was using:
http://www.htmldog.com/articles/suckerfish/dropdowns/
And here's the exact example my menu is derived from:
http://www.htmldog.com/articles/suckerfish/dropdowns/example/
In this menu, there's a piece of JavaScript which makes the dropdown
menu work in IE6, but my 'edited' example doesn't work in IE6, see
here: http://www.beta.zestimages.com
I think the issue is that in the working example in the article, the
'nav' ID is in the <ul> element, whereas I've coded my menu so that the
'nav2' ID is in the <div> that surrounds the <ul>. If that is indeed
the issue?
If I'm correct about why the JavaScript isn't working, can anyone tell
me how it can be adapted so that it works? To make this easier, I've
copied and pasted the JavaScript below.
Alternatively, if anyone can recommend a dropdown menu that can be
styled similarly to how I've styled this, but with the potential to
work better, I'd be happy to take a look and try that instead.
Many thanks,
Ste
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav2").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
}
sfEls.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
I'm having a few issues getting a 'Son of Suckerfish' dropdown menu
working in IE6 so am just posting here for some help please.
Here's the article I was using:
http://www.htmldog.com/articles/suckerfish/dropdowns/
And here's the exact example my menu is derived from:
http://www.htmldog.com/articles/suckerfish/dropdowns/example/
In this menu, there's a piece of JavaScript which makes the dropdown
menu work in IE6, but my 'edited' example doesn't work in IE6, see
here: http://www.beta.zestimages.com
I think the issue is that in the working example in the article, the
'nav' ID is in the <ul> element, whereas I've coded my menu so that the
'nav2' ID is in the <div> that surrounds the <ul>. If that is indeed
the issue?
If I'm correct about why the JavaScript isn't working, can anyone tell
me how it can be adapted so that it works? To make this easier, I've
copied and pasted the JavaScript below.
Alternatively, if anyone can recommend a dropdown menu that can be
styled similarly to how I've styled this, but with the potential to
work better, I'd be happy to take a look and try that instead.
Many thanks,
Ste
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav2").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
}
sfEls.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>