Hi,
I have done some simple javascript to show and hide some div when you mouse over hot spot on a image map.
<script>
function showDiv(name) {
document.getElementById(name).style.display = "block";
}
function hideDiv(name) {
document.getElementById(name).style.display = "none";
}
</script>
The functions are appropriately called on the mouseover and mouseout events.
At the moment the positioning is applied in the css. However I would like to extend this to show the tooltip above or below the hotspot depending on the scroll position. I mean at the moment if you mouse over a hotspot which is at the bottom of the screen, the div that appears will appear out of view, the visitor will have to scroll down to see it. I would like it to appear above the hotspot in such cases.
Any suggestions, thanks.