Son of suckerfish onClick problem

C

Chris

I am using the son of Suckerfish dropdown technique to do drop down menus.
It is really cool but you need to attach some events to the LI and UL tags
to get it to work in IE(see http://www.htmldog.com/articles/suckerfish/). As
well as the hover creating a popup I would like to click on an an item to
create the popup. Adding the onClick event works but suddenly the mouseout
doesn't remove the popup. Can anyone help.

sfHover = function() {

var sfEls = document.getElementById("nav").getElementsByTagName("LI");

for (var i=0; i<sfEls.length; i++)

{

sfEls.onclick=function()

{

this.className+=" sfhover";

}

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);
 
N

Neredbojias

I am using the son of Suckerfish dropdown technique to do drop down
menus. It is really cool but you need to attach some events to the LI
and UL tags to get it to work in IE(see
http://www.htmldog.com/articles/suckerfish/). As well as the hover
creating a popup I would like to click on an an item to create the
popup. Adding the onClick event works but suddenly the mouseout
doesn't remove the popup. Can anyone help.

This sounds like a focus matter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top