Forum Moderators: open
//Default browsercheck, added to all scripts!
function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 ¦¦ this.ie4 ¦¦ this.ns4 ¦¦ this.ns5)
return this
This is not the whole script
Can someone help me?
/Ove
I've modified your script so that it will treat IE6 just the same is IE5... this will probably fix your problems. The bit I've added is coloured in for you.
(edited by: joshie76 at 2:11 pm (utc) on Feb. 5, 2002)