From: Samuel, M. M <Sam...@ed...> - 2000-12-15 03:06:22
|
Before I found DynAPI and I was stumbling along trying to create inline code that handles all browsers - I went through the Opera site and couldn't find anything to do with their implementation of CSS or the DOM or anything else. Has anyone been able to find documents on their site that give developers more of an idea? BTW - I think the major difference between 4 and 5 is the free-ness and the inclusion of ads in the interface - obviously bug fixes and stuff - but mostly that... With Opera being free - maybe we'll see an increase in it's usage! Mike -----Original Message----- From: Brandon Myers [mailto:bnd...@ho...] Sent: Friday, 15 December 2000 12:10 PM To: dyn...@li... Subject: RE: [Dynapi-Dev] Mozilla & Opera 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 _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |