Tuesday, February 24, 2009

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 1910 1911 Turkey Red baseball cards 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 House of Mystery 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 X-Men movie In early 2000, his scripts were available for use and download on Dynamic Drive, 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 rel="nofollow" 65.36.227.70/CoolMenus3/Cool Menus 3 and rel="nofollow" 65.36.227.70/CoolMenus3/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 1952 Topps baseball cards 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.

0 Comments:

Post a Comment

<< Home