Click to See Complete Forum and Search --> : Image on a map
russ3ell
11-27-2002, 07:12 AM
I'm new to HTML programming, so I'm not sure how to do this...I've managed to load up a map using 'src=' and then using 'DIV' and the 'CSS2 style position' element to put little red dots on the map. What I would like to do is dynamically make the red dots either visible or invisible without reloading the image from the server
gil davis
11-27-2002, 07:39 AM
Originally posted by russ3ell
What I would like to do is dynamically make the red dots either visible or invisible without reloading the image from the server
All the dots, or just some of the dots? Which image, the dot or the map?
Stefan
11-27-2002, 09:12 AM
You are probably looking for something like
<div id="dot1" style="visibility:hidden;">yourdot</div>
And some button etc with onclick="showhide()"
document.getElementById("dot1").style.visibility='visible';
document.getElementById("dot1").style.visibility='hidden';
depending on current status of the visibility.
russ3ell
11-27-2002, 10:11 AM
The showhide thing looks like it would work. I'll give it a try. Thanks a lot