Click to See Complete Forum and Search --> : Image instead of the 'alt' attribute


Miroku
01-05-2006, 06:10 AM
How can I put an image which follows the arrow when this is on a thing (so with the onmouseover attribute)?

TheBearMay
01-05-2006, 07:13 AM
One way is to replace the cursor, so for a link we could do:

<style>
a:hover {
cursor: url("http://pathToSmallImg.gif")
}
</style>

Miroku
01-05-2006, 07:59 AM
does it work on ImageMaps?

TheBearMay
01-05-2006, 08:33 PM
Sort of...

You'd have to set up a cursorChg class and then use the onmouseover event on the area tag to change the class of the image, and use the onmouseout to reset it...


.cChg {
cursor: url("http://pathToSmallImg.gif")
}
...
<img id="mapImg" usemap="#aMap" src=.....>
<map name = "aMap....>
<area shape =..... onmouseover="getElementById('mapImg').className='cChg'" onmouseout="getElementById('mapImg').className='' "...>
...