Hello everybody,
I am currently implementing a popupmenu for a demo site.
Screenshot
The Problem is that the table cells keep moving along a Horizontal Line and hence the XY co-ordinates of the Popup must change accordingly. I can pass the X and Y co-ordinates to the PopUp Menu. How can I calculate position of say the <td> so that I can calculate the co-ordinates for the popup. I am not too well versed in Javascript so I want to know what is the Best approach of implementing this. I wouldnt mind placing an invisble gif in the <td> to get accurate positioning. What I dont want to do is position relative to link as then it will be difficult to get the pop up aligned below the Cell each time.
Any help greatly appreciated.
I am currently implementing a popupmenu for a demo site.
Screenshot
The Problem is that the table cells keep moving along a Horizontal Line and hence the XY co-ordinates of the Popup must change accordingly. I can pass the X and Y co-ordinates to the PopUp Menu. How can I calculate position of say the <td> so that I can calculate the co-ordinates for the popup. I am not too well versed in Javascript so I want to know what is the Best approach of implementing this. I wouldnt mind placing an invisble gif in the <td> to get accurate positioning. What I dont want to do is position relative to link as then it will be difficult to get the pop up aligned below the Cell each time.
Any help greatly appreciated.