Forum Moderators: not2easy
I got the script from some suckerfish derivative. Here's what my pcie using client says:"I especially like the drop down menus. However, they don't seem to work quite right. I move my mouse down the list and they disappear before I can click on anything. It seems to be more prevalent on the right side of the drop down list."
Does anyone have script that will work for certain on the pc, and at least mac ff? Don't really care about macie. This is the script I'm currently using:
<script type="text/javascript"><!--//--><![CDATA[//><!--
function menuFix() {
var sfEls = document.getElementById("navdrop").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
// event added to keep menu items from disappearing
sfEls[i].onMouseDown=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
// event added to keep menu items from disappearing
sfEls[i].onMouseUp=function() {
this.className+=(this.className.length>0? " ": "") + "sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp("(?¦^)sfhover\\b"), "");
}
}
}
window.onload=menuFix;
//--><!]]></script> BTW, there is only one level of dropdown.