Discussion Locked

Dynamically moving txt a top of an image

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to move a red dot on a graphic map that looks at a database. When a change occurs in the db location fields the web based page must move the dot.

5 replies

by juanja

You can achieve this by getting the coordinates from the database, and then position the image(circle) over the map with a .
Copy the code below into an html file, and then open the file with the browser. I placed four buttons for you to understand how to move the image. However, when you implement it with the database, write the initial values of PixelLeft and Top in the style section with ASP or something.
You can modify the code to support netscape (layers instead of Divs ).

Justreplace circle.gif and map.gif with your images.

Hope this helps!
Don't forget to rate my answer

by juanja

You can achieve this by getting the coordinates from the database, and then position the image(circle) over the map with a .
Copy the code below into an html file, and then open the file with the browser. I placed four buttons for you to understand how to move the image. However, when you implement it with the database, write the initial values of PixelLeft and Top in the style section with ASP or something.
You can modify the code to support netscape (layers instead of Divs ).

Justreplace circle.gif and map.gif with your images.

Hope this helps!
Don't forget to rate my answer

This discussion is closed to new replies.