> yep - .top works (although i'm having to usee .replace() to get rid of the
> px
What I tend to do with my DOM is build up a string and then eval() it, this
way you can add as many bits as you want for different DOMs
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 layer = eval(doc + brO + '"MainCopyLayer"' + brC + sty);
You could add in bits afterwards to put the "px" on if required
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