The alternate menu pages only work if they exist and are kept current, but yes that is an excellent way to use the anylink menu accessibly.
I know how to exclude Safari, but not specific version numbers. If you have a test, for example I will use the test for Safari that I know, the one that doesn't single out any specific version:
Code:
if(/Apple/.test(navigator.vendor))
You could do something really straightforward like return true from the drop down:
Code:
function dropdownmenu(obj, e, menucontents, menuwidth){
if(/Apple/.test(navigator.vendor))
return true;
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
It would be a good idea to do the same here:
Code:
function delayhidemenu(){
if(/Apple/.test(navigator.vendor))
return true;
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
Any browser excluded in such a manner from those functions will work as though the script isn't on or liked to the page. That's only when using the onclick method of dropping down. If you are using the default hover method, you would need to add it here as well:
Code:
function clickreturnvalue(){
if(/Apple/.test(navigator.vendor))
return true;
if (ie4||ns6) return false
else return true
}
Bookmarks