|
From: Brandon M. <bnd...@ho...> - 2000-12-15 01:08:22
|
This was my updated browser.js file.. I've had it for about 2 months now...
notice the line: else if (navigator.userAgent.indexOf("Opera")>0) this.b =
"opera";
function BrowserCheck() {
var b = navigator.appName;
if (b=="Netscape") this.b = "ns";
else if (navigator.userAgent.indexOf("Opera")>0) this.b = "opera";
else if (b=="Microsoft Internet Explorer") this.b = "ie";
if (!b) {
alert('This browser is not supported in this version');
history.back();
}
this.version = navigator.appVersion;
this.v = parseInt(this.version);
// Supported Browsers Below:
this.ns = (this.b=="ns" && this.v>=4);
this.ns4 = (this.b=="ns" && this.v==4);
this.ns5 = (this.b=="ns" && this.v==5);
this.ie = (this.b=="ie" && this.v>=4);
this.ie4 = (this.version.indexOf('MSIE 4')>0);
this.ie55 = (this.version.indexOf('MSIE 5.5')>0);
if(this.ie55) this.v=5.5;
else {
this.ie5 = (this.version.indexOf('MSIE 5')>0);
if(this.ie5) this.v=5;
}
this.opera=(this.b=="opera");
if (this.opera) this.v=this.version.split(" ")[0];
// Detect as close to TRUE DOM as possible... DOM support in this API is
dependent on the following 2 functions.
this.dom =
((document.createRange&&(document.createRange().createContextualFragment))?t
rue:false);
if (this.dom) is.b="dom";
this.min = (this.ns||this.ie||this.dom);
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("win")>-1) this.platform = "win32";
else if (ua.indexOf("mac")>-1) this.platform = "mac";
else this.platform = "other";
}
> -----Original Message-----
> From: dyn...@li...
> [mailto:dyn...@li...]On Behalf Of Scott Andrew
> LePera
> Sent: Thursday, December 14, 2000 6:51 PM
> To: dyn...@li...
> Subject: Re: [Dynapi-Dev] Mozilla & Opera
>
>
> Well, that's it then!
>
> Funny how they bury it like that.
>
> --
> scott andrew lepera
> -----------------------------------
> web stuff: www.scottandrew.com
> music stuff: www.walkingbirds.com
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|