For those who work with a multi-browser DOM, I've at last got it working
(with help from Nick DeVoil)... here's the detector and object selector;

if(document.all)
{nav = "ie4"
 doc = "document.all";
 brO = "[";
 brC = "]";
 sty = ".style";}
else if(document.layers)
{nav = "ns4"
 doc = "document";
 brO = "[";
 brC = "]";
 sty = "";}
else if(document.getElementById)
{nav = "ns6"
 doc = "document.getElementById";
 brO = "(";
 brC = ")";
 sty = ".style";}

var WorkObject = eval(doc + brO + '"ObjectName"' + brC + sty);

Please note that IE4 and NS4 work with square brackets, but NS6 does not,
this is why I have the bracket selector...

Most of the calls that worked in NS4 will probably not work in NS6 now - so
you'll have to check your code - but some bits like the IE4 "clip" works in
NS6

I've only just scratched the surface, so please don't ask me too many
difficult questions <g>

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to