WWW Archives

Cool Menus Not Working

Cool Menus is Dead

I originally posted the article below in 2008 and thought it should live a little longer here on my new site. Enjoy!


A Replacement Browser Check Script for Cool Menus 3, Cool Menus 4

With the release of IE 7 (Internet Explorer 7), many web admins were pulling their hair out, figuring out why their Cool Menus 3 and Cool Menus 4 navigation scripts were not working.

Excellent Cool Menus was initially written and supported by Thomas Bratta, Java Script king, web developer. Moreover, in early 2000, his scripts were available for use and download on Dynamic Drive.com, which is currently not working or is defunct. Therefore, we hope Mr. Bratta returns or starts a new website. Above all, he and his team created some handy and creative menu scripts for web admins.

Now to the heart of the matter

In the old script, there was a browser script check function. 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
}


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. However, this was odd because the drop-down functionality would still work in Firefox and Netscape. After months of research, we found a replacement browser check script that restores the Cool Menus system’s drop-down menus.

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
}


Replace the old browser check script with the new one above, and you are ready! Everything should work just fine until Microsoft releases Internet Explorer 8.

Last but not least.
Still using Cool Menus? You should find a new menu system! RIP Cool Menus


ABOUT VISIONEFX

VISIONEFX provides services to small business owners throughout the United States. Please read what our customers have to say about VISIONEFX on Google ReviewsFor more information, call (757) 619-6456 or use our contact form. 

Click For Free Quote!
Virginia Website Development Experts

REPUTATION : WE VALUE OUR CLIENTS

Reputation Is Everything. We make sure customer websites run like a finely tuned machine to help them beat the competition and excel online. Please take a moment and read our live Google Reviews.

Web Maintenance Support Virginia

UNPARALLELED CUSTOMER SERVICE

Visionefx knows it's essential to keep your Website, contact forms, and database humming along 24/7. We support and maintain your business website as your very own 'personal webmaster.'