Click to See Complete Forum and Search --> : mouse over <img tag


raghu123
05-19-2006, 02:54 AM
In one of my requirement i need to use <img tag instead of anchor with img
.
So i have modified code as below.
On mouseover a image i need to show hand icon.This is inorder to make as it was earlier with anchor.

How to achive this I.e
showing hand icon on mouseover ?

OLD
a href="javascript:fnValidate('LOGOUT')">
<img border="0" src="/test/images/ic_logout.gif" width="52" height="32" alt="Logout">
</a>

NEW
<img src="../../images/ic_logout.gif" height="32" width="52" border="0" id="link2" title="Logout" onclick="javascript:fnValidate('LOGOUT')">

Fang
05-19-2006, 06:56 AM
x-posted

WebJoel
05-19-2006, 08:43 AM
Maybe something like adding "cursor:pointer;" or "cursor:hand;"? You can add both, as 'pointer' is IE-proprietory I think.
And if you add both, do it as "cursor:pointer; cursor:hand;" because IE since 5.x will give you problems if you specify 'pointer' last...