[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: UKNM: Search Engine Optimisation vendors wanted
From: Sam Carrington
Date: Tue, 1 Aug 2000 18:19:07 +0100

Apologies - you are using cross browser DHTML - its just a shame
netscape users cant take advantage of it.

marketeers close your eyes, fingers in ears, and hum loudly...

<TECH>

-------------------------------------------------------

// Dynamic Layer Object
// sophisticated layer/element targeting and animation object which
provides the core functionality needed in most DHTML applications
// 19990604

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

[ ... snip ... ]

function BrowserCheck() {
var b = navigator.appName
if (b=="Netscape") this.b = "ns"
else if (b=="Microsoft Internet Explorer") this.b = "ie"
else this.b = b
this.version = navigator.appVersion
this.v = parseInt(this.version)
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.ie5 = (this.version.indexOf('MSIE 5')>0)
this.min = (this.ns||this.ie)
}

--------------------------------------------------------

According to the advice at netscape devcentre, code using objects with
poor/variable support should always be armoured by a check for the
existance of that object, rather that a specific browser or combination
thereof.

i.e.

if (document.images) { } round image swap code rather than

if (is.ie || is.ns) { }

And the same applies for the use of dynamic layers in IE and Netscape

Applying dynamic formatting/styles for a specific browser is a different
issue, and check must be made for relevant browsers rather than aspects
of the document object model which may or may not be supported...
</TECH>

And you can open your eyes again now ;-)

;-)

James Sandoval wrote:
>
> Hello,

--
sam carrington // senior web developer // sensei.co.uk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ScreamingMedia the leading global technology platform for
the aggregation and distribution of digital content over the
Internet, is now operating in the United Kingdom.
Get relevant and customised content to attract visitors
to your site and keep them there. Click Here!

http://adcenter.in2.com/cgi-bin/click.cgi?tid=31036
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/uk-netmarketing or helpatchinwag [dot] com



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]