473,396 Members | 1,743 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,396 software developers and data experts.

Image Map Using JavaScript and Css

Hi
I have made one javascript which allows me to add note on image using css and javascript. Every thing works fine.
But following problme occurs.
I want to display allthe notes on image when we mouse over the image and hide the notes when we mouse out the image.
I am also displaying boxes on image which contains the note area.
Now the problem is that i am on image and when i tried to move mouse over the box which is one layer above the image the onmouseout fires which should not happen.
can any one help?
Following is the code
<img src="image.jpg" alt=" " id="imagenote" onmouseover="displayNote(event)" onmouseout="hideNotes(event);" />
There are certain boxes which is made up of div and which is above the image. now when i mouseover the boxes which is above the image the onmouseout fires which should not happen.
what should be the solution.
May 29 '07 #1
6 2039
acoder
16,027 Expert Mod 8TB
Moved from the Articles section.
May 29 '07 #2
acoder
16,027 Expert Mod 8TB
You will need to learn about event bubbling/capturing and the order of events. See link.
May 29 '07 #3
hi acoder,

I have tried to used event capturing and bubbling but it also didn't help me. I want certain specific idea. Can u tell me in some detail or with any example.
Thank you
May 30 '07 #4
acoder
16,027 Expert Mod 8TB
See the section "Turning it Off". The function, doSomething, contains both cancelBubble = true and e.stopPropagation():
Expand|Select|Wrap|Line Numbers
  1. if (!e) var e = window.event
  2. e.cancelBubble = true;
  3. if (e.stopPropagation) e.stopPropagation();
May 30 '07 #5
Hi
acoder
Thanks for your response.
I till don't find it the proper way
I have take reference of following script
http://www.dustyd.net/projects/PhotoNotes/
if u can help me then see the script given in this site. in that i want to display the note when user mouseover the images and hide notes when user mouse out the images.
Jun 1 '07 #6
hi,
acoder
do u have any idea in the above post regarding
http://www.dustyd.net/projects/PhotoNotes/ how to implement onmouseover and onmouseout in the above script then please help me.
Jun 5 '07 #7

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

Similar topics

4
by: Tim | last post by:
Hope someone in the big wide world can help... What I want to do is have an image slideshow which automatically scrolls through a series of images very fast, then pauses when you move your mouse...
5
by: Paul | last post by:
Hi, Is it possible using JavaScript to write text over an image? I know this would be possible by using a HTML table and using the image as a background but this is undesired. Also, an image map...
6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
9
by: Karl Burrows | last post by:
I am working on a Website for a non-profit group and for some reason I have one link that doesn't want to cooperate. All the image links work fine with the onmouseover and onmouseout script except...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
6
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and...
9
by: zacariaz | last post by:
I dont know, and i dont much like javascript, however, i am told that the only way to do want i want to do, is with javascript, so here goes. zoom and cut is the only features i need. 1. the...
2
by: sachaburnett | last post by:
Hi everyone! I'm new to Javascript and am finding so much useful information on this group, so thanks to you all! I have a question about preloading images for onmouseover/out effects and...
4
by: Mark S. | last post by:
Hello, On a high volume page we have the following JavaScript: img = new Image() img.src = 'http://myserver.com/count.aspx?x=1'; and it works fine, but now we've added: img.onload =...
6
by: Seth Illgard | last post by:
Hi, Im writting a custom CMS and everything looks great, except when I see the results in IE. What im trying to do is: *Have an image in a layer (or relative positioned, or just margined). The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.