473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Mouseover and Mouseout events

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
3 2486
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
r035198x
13,262 8TB
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
16,027 Expert Mod 8TB
Just add
Expand|Select|Wrap|Line Numbers
  1. onmouseout="writeText('')"
May 29 '07 #4

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

Similar topics

3
by: Colin Steadman | last post by:
Help! I'm a stupid HTML bod and I dont do Javascript! I have a grey coloured table that displays certain columns in either red, green or orange to give meaning and emphasis to certain data. ...
3
by: John | last post by:
Imagine this: I have a gif-image with text, coloured green. When MouseOver occurs the gif will swap to another gif with red colourded text. On MouseOut the gif turns back to the green text. ...
2
by: Alex | last post by:
On my page I have a lot string like this: <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc1</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc2</span> <span...
2
by: Matt Colegrove | last post by:
How does one set a Mouseover/Mouseout event on a cell in a GridView? I can successfully assign these events to be active on a row in a GridView. I can do this with a DataGrid, by adding code to...
1
by: dheepakk | last post by:
Hi All, When a mouseover event takes place over a link the popup window is displayed. I also have a mouseout on the link.So if the popup window comes up,has a dimension such that the...
1
sgeklor
by: sgeklor | last post by:
Dear All, My question refers to how best to organise my mouse events to correctly and efficiently give the effect I want. On my form I have a panel and that panel contains a number of controls....
11
by: gdp | last post by:
hi - hope someone can suggest a way round this see http://www.tidybit.com/public/ this is a stripped down version of a site i am doing. when you mouseover the artist names on the left - the...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
2
by: markszlazak | last post by:
Could someone check out the following code and please help me understand the problem and fix it. It seems like some events are not firing when my mouse moves over the table cells to quickly causing...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.