Cool
Menus Not Working -
A Replacement Browser Check Script for Cool Menus 3, Cool
Menus 4
With the release of IE 7 (Internet
Explorer 7) many web masters were pulling their hair out trying
to figure out why their Cool
Menus 3 and Cool
Menus 4 navigation scripts were not working.
Cool Menus were originally written and support
by Thomas Bratta, Java Script king, web developer. In early
part of 2000 his scripts were avaible for use and download
on Dynamic Drive.com which is currently not working or is
defunct. We are hoping Mr. Bratta makes a return or starts
a new website. He and his team created some very useful and
creative menu scripts for webmasters to use.
Now to the heart of the matter
In the old script their was a browser script check function.
Here is the script in it’s orginal form.
-------------------------------------------------------------------------------------------
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion; this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 &&
this.dom)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 &&
this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5)
?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6
|| this.opera5 || this.dom)
return this
}
-------------------------------------------------------------------------------------------
IE 7 Menus Problems
When IE 7 was released in 2006 the drop
down functions in Cool Menus 3 systems and
early versions of Cool Menus 4. This was
really odd, because the drop down functionality would still
work in Fire Fox and Netscape. After some months of research
we found a replacement browser check script that restores
the drop down menus in the Cool Menus system.
Here is the new ‘Browser Check
Function Script’
-------------------------------------------------------------------------------------------
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion; this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 &&
this.dom)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 &&
this.dom)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 &&
this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ie=this.ie4||this.ie5||this.ie6 || this.ie7
this.mac=this.agent.indexOf("Mac")>-1
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5)
?1:0;
this.ns7=(this.dom && parseInt(this.ver) >= 5)
?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4
|| this.ns6 || this.opera5 || this.dom)
return this
}
-------------------------------------------------------------------------------------------
Simply replace the old browser check
script with the new one above and you are good to go!
Everything should work just fine until
Microsoft releases Internet Explorer 8.
About the Author
Ricardo Vidallon is company owner and creative designer for
http://www.visionefx.net |