Hi,
Is there a way to get an image's position on the screen?
What I want to do is generate a side menu from a database. I want each Link in the menu to have a pop up menu(CSS layer), and the content of this popup menu would be database driven also. To position the popup menu to their respected links, I though I would place a transparent gif beside each link, get its position and place the layer at that position. So I figured the logic would go like this:
Connection Strings
SELECT Titles FROM table1
WHILE loop to display title
<td>
display title
</td>
<td>
transparen gif, 1 x1 pixel(I want to position the Popup menu here, so I would need its position at this point)
</td>
Create layer at position of gif
SELECT Subtitles which matches with current title from table2
While loop to display all Sub-titles in popup menu
display subtitles
loop
loop to display next titles
Does this make any sense?