PDA

View Full Version : Is there a way to get the x and y position of a relative layer?


territoryOK
05-28-2002, 12:07 AM
I am writing this menu script that will take advantage of submenus. The user can go as many submenus deep as they want. Now, I want to code a function that will inform the menu that its submenus have reached the end of the screen. But, I also have it where the menu can be writtin to another element as opposed to the main document. On my site, the menu will be written to a table cell. Is there a way to get the coords of a table cell or a relative layer?

kevin
05-29-2002, 01:20 AM
If its possible the only way would be javascript so I will move your thread to that forum.

Dr. Web
05-29-2002, 11:49 AM
I know your having fun re-writing the wheel, but make sure you take a look at www.dhtmlcentral.com before you put too much brain damage into it. His hierarchy menus work as you describe, are very cross browser friendly, and use div placement. If nothing else, you can take a look at a pros version.