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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top