JavaScript: NN6: X Coord

by "Bastyr University WebMaster" <WebMaster(at)bastyr.edu>

 Date:  Tue, 05 Dec 2000 08:30:03 -0800
 To:  <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Hello all,

I currently use some javascript on our site for Netscape in our navigation =
to pop up a box with additional links.  The position is based on the x and =
y coords of an anchor tag. =20

I'm now trying to get this same thing to work in Netscape 6.  I can get =
the box to show just below the link, but not positioned according to the =
coords I want.  So far I'm not able to get the coordinates.  Previously I =
used:

anch =3D eval("document.anchors['"+iName+"']");
eval("document."+iName+"A.top =3D '"+anch.y+"'")
eval("document."+iName+"A.left =3D '"+anch.x+"'")

I've added some getElementById's to this to get some of the functionality =
to work, but I still can't get to the x/y coords.  Are they gone in NN6?

I've tried variations on getElementsByTagName and getAttribute, but no =
luck so far.=20

Any pointers would be much appreciated.=20

Regards,

Doug Dossett
Webmaster
Bastyr University
http://www.bastyr.edu
ICQ# 94618088

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