Chris Rahe wrote:
> Here's the page: http://www.bremenhospital.org/testsite/pages/ 
> specialists.html
> 
> CSS for the pertinent part is in the HTML <head>
> 
> I can't get the "Specialties" button to drop down when hovered in  
> IE6. A couple of people looked at this last week, but I still haven't  
> been able to resolve it, though I have to thank Alan Gresley for  
> helping resolve another nagging issue I had.
> 
> Can anyone help me get this working in IE6?
> 
> Thanks!

Couple of issues here.

getElementById("specMenu")

is getting Elements by Id, not by class (at least I guess this it what 
the method does. If not, then this is another reason for me not to learn 
scripting).

So,
    <ul class="specMenu">
must be
    <ul id="specMenu">

Consequentially, all selectors
    .specMenu
must be
    #specMenu
in your CSS.


Further, your suckerfish javascript is a victim of copy&paste


afHover = function() {
        var afEls = 
document.getElementById("specMenu").getElementsByTagName("LI");
        for (var i=0; i<afEls.length; i++) {
                sfEls[i].onmouseover=function() {
                        this.className+=" afhover";
                }
                sfEls[i].onmouseout=function() {
                        this.className=this.className.replace(new RegExp(" 
afhover\\b"), "");
                }
        }
}
if (window.attachEvent) window.attachEvent("onload", afHover);


Here, you did change afhover to sfhover, which is not important, but you 
changed sfELS to some extend only to afELS. You have a mix of afELS and 
sfELS. I'm not a Javascriptian, but this is apparently wrong.

I'd go for the original suckerfish script, use sfhover and sfELS, and 
change the class names in the CSS accordingly.


Ingo Chao
-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to