View Full Version : Window Script on Mac IE 5
urbankid
14.08.2001, 08:14
<font face='Verdana'>Hi,I wanted to use the window script for my own web site, but after I tested it at work on a mac I'm about to change all of it. None of the windows are visible!!! I have tried to work around this but with no luck. Does anyone have any advice on how to solve this problem? For any suggestions or comments please mail me at urban_kid@hotmail.com</font id='Verdana'>
http://www.vasava.es/
urbankid
16.08.2001, 14:20
I finally found my way around it. The Window Script didn't recognize the mac ie5 agent as an explorer browser(?!).
I figured a way to fool it with these properties. It aint smooth like a sade tune, but it does its work.
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=(this.agent.indexOf("Opera 5")>-1)
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=(this.ie4||this.ie5||this.ie6)
this.mac=(this.agent.indexOf("Mac")>-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)
if( (this.ver == "4.0 (compatible; Internet Explorer 5; Macintosh; I; PPC)")&&(this.agent == "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)") && (this.mac == true) ) {
this.opera5=false;
this.ie4=false;
this.ie5=1;
this.ie6=0;
this.ie=1;
this.ns6=0;
this.ns4=0;
this.bw=1;
}
return this
}
http://www.vasava.es/
vBulletin® v3.6.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.