iDoof
04-29-2006, 01:02 PM
So this is kind of both CSS and javascript, but I'm guessing the solution lies more in Javascript so I'm posting this here.
I'm basically doing an image rollover, but the reason it's slightly more complicated is because it's actually an image map. When a hotspot on the map is rolled over, I want to change just the hotspot.
So here's the solution I came up with: I create a DIV with the new hotspot image and absolutely position it over the hotspot, then set visibility to "hidden". Then I created a Javascript function that just takes the DIV and sets its status to a variable "status". Then on the image map, I pass that function 'visible' onMouseOver, and I pass it 'hidden' onMouseOut.
It works alright, I guess. But you have to keep your mouse still over the hotspot for it to show up, otherwise it starts blinking, or it doesn't show up or something. It makes sense because when your mouse is over the hotspot, and the DIV appears over it, the mouse is no longer over the hotspot, so it disappears.
So what can I do???
Thanks a lot
I'm basically doing an image rollover, but the reason it's slightly more complicated is because it's actually an image map. When a hotspot on the map is rolled over, I want to change just the hotspot.
So here's the solution I came up with: I create a DIV with the new hotspot image and absolutely position it over the hotspot, then set visibility to "hidden". Then I created a Javascript function that just takes the DIV and sets its status to a variable "status". Then on the image map, I pass that function 'visible' onMouseOver, and I pass it 'hidden' onMouseOut.
It works alright, I guess. But you have to keep your mouse still over the hotspot for it to show up, otherwise it starts blinking, or it doesn't show up or something. It makes sense because when your mouse is over the hotspot, and the DIV appears over it, the mouse is no longer over the hotspot, so it disappears.
So what can I do???
Thanks a lot