By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,793 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,793 IT Pros & Developers. It's quick & easy.

Javascript style cursor hand works in IE but not in Firefox??

P: 2
i have an image map with an onmouseover event thats calls a javascript function style cursor is hand. this works in IE but not in firefox. here's the code:

<script type="text/javascript">
<!--
function onMouseOver() {
document.body.style.cursor="hand";
}

function onMouseOut() {
document.body.style.cursor="default";
}
// -->
</script>

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/picture.jpg" usemap="#map" alt="Image" border="0" />
<map name="map">
<area shape="rect" alt="Enter Site" coords="615,502,712,536" onMouseOver="onMouseOver()" onMouseOut="onMouseOut()" title="Enter Site" >
</map>
</td>
</tr>
</table>


i already tried "pointer" but still it doesnt work. can you please help me with this one? i really would appreciate it. thanks!
Jun 22 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
See an example of how to use area and map here.
Jun 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.