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

Mouseover and Mouseout events

P: 5
I have a problem.
See the Mouseover event below


<head>
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("x").innerHTML=txt
}
</script>

</head>

<body>

<IMG src="Mymap.jpg" usemap="#Mymap"
alt="Mymap">
<map id ="Mymap" name="Mymap">
<MAP name="navigationMap">
<AREA coords="100,200,140,252" shape="rect"
onMouseOver="writeText('Text.')"
</MAP>
<p id="x"></p>
</body>

Can anyone tell me how to remove Text when the Mouse is out of the selected area?
Sep 21 '06 #1
Share this Question
Share on Google+
3 Replies


P: 5
Please take a look at the following site which might helps you.
It is a good reference for the things what u need.
http://www.kryogenix.org/code/browser/annimg/annimg.html
May 29 '07 #2

10K+
P: 13,264
I have a problem.
See the Mouseover event below


<head>
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("x").innerHTML=txt
}
</script>

</head>

<body>

<IMG src="Mymap.jpg" usemap="#Mymap"
alt="Mymap">
<map id ="Mymap" name="Mymap">
<MAP name="navigationMap">
<AREA coords="100,200,140,252" shape="rect"
onMouseOver="writeText('Text.')"
</MAP>
<p id="x"></p>
</body>

Can anyone tell me how to remove Text when the Mouse is out of the selected area?
Moved to Javascript forum.
May 29 '07 #3

acoder
Expert Mod 15k+
P: 16,027
Just add
Expand|Select|Wrap|Line Numbers
  1. onmouseout="writeText('')"
May 29 '07 #4

Post your reply

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