iPedia.net
Home - Information - Dictionary - Articles - Video - Web

IE 7 Cool Menus 3 & 4 Not Working? Quick Fix with a Replacement Browser Check Function Script

With the release of IE 7 (Internet Explorer 7) in 2006, many webmasters were pulling out their hair trying to discover why their Cool Menus 3 and Cool Menus 4 navigation scripts were not working.


With the release of IE 7 (Internet Explorer 7) in 2006, many webmasters were pulling out their hair trying to discover why their Cool Menus 3 and Cool Menus 4 navigation scripts were not working. Particularly, the drop down functions in Cool Menus 3 systems and early versions of Cool Menus 4 did not work properly. This was really odd, because the drop down functionality would still work in Fire Fox and Netscape.

Cool Menus were originally written and support by web developer Thomas Bratta, Java Script king. In early 2000, his scripts were available for use and download on Dynamic Drive.com, which is currently not working. We are hoping Mr. Bratta makes a return or starts a new web site. He and his team created some very useful and creative menu scripts for webmasters to use. View here to see Cool Menus 3 and Cool Menus 4 menus in action.

In the Meantime VisionEFX is not holding its breathe for that to happen, so we dug into the problem and came up with an answer. In the old script there was a Browser Check Function Script. Here is the script in its original 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 }

After months of research we found a replacement Browser Check Function 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 Function Script with the one above and you are good to go! Everything should work fine until Microsoft releases Internet Explorer 8.

Ricardo Vidallon is company owner and creative director for Visionefx a Virginia based web design company.


...click on link for more information and related articles.


AddThis Social Bookmark Button    Digg this article.

Other articles

Article Categories
 

uDic.us - Albums, songs and lyrics - Music & Cinema Encyclopedia
All content on this website, including articles, information, pictures, dictionary, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.
page counter