Image on a map

liunx

Guest
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='http://www.webdeveloper.com/forum/archive/index.php/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<!--content-->Originally posted by russ3ell <br />
What I would like to do is dynamically make the red dots either visible or invisible without reloading the image from the server <br />
<br />
All the dots, or just some of the dots? Which image, the dot or the map?<!--content-->You are probably looking for something like<br />
<br />
<div id="dot1" style="visibility:hidden;">yourdot</div><br />
<br />
<br />
And some button etc with onclick="showhide()"<br />
<br />
<br />
document.getElementById("dot1").style.visibility='visible';<br />
document.getElementById("dot1").style.visibility='hidden';<br />
depending on current status of the visibility.<!--content-->The showhide thing looks like it would work. I'll give it a try. Thanks a lot<!--content-->
 
Back
Top