RE: DOM and variables

by "David Wagner" <dwagner(at)kevric.com>

 Date:  Fri, 31 Mar 2000 09:00:15 -0600
 To:  <hwg-style(at)mail.hwg.org>
 In-Reply-To: 
  todo: View Thread, Original
andy dunbar asked how to make this work.
> currentid = "header"+layerlist[i]+"middle"+section;
> currentid.style.visibility="visible";

Change the second line to the following code.

with(document.all(currentid)){style.visibility="visible"}

There may be a better way to do this, but this works well in IE.
Regards -David

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.