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

Events in enclosed tags

Hi,

I have an popup menu on mouesover and mouseout for table <td> tag. It was working OK while I didn't add a link in this <td>. Now I have problems.

It seems that event is sent for both for td and link.

<code>
<td onmouseover=popup("Some text"); onmouseout=exit();>
<a>MY LINK</a>
</td>

When my mouse is over <td> popup() works, if it moves over link (in same td) exit works and then again popup. My Problem is that sometimes the exit() function works before popup() and I the popup window is stuked.

Can you help me to get over this???
Feb 15 '07 #1
2 1136
r035198x
13,262 8TB
Hi,

I have an popup menu on mouesover and mouseout for table <td> tag. It was working OK while I didn't add a link in this <td>. Now I have problems.

It seems that event is sent for both for td and link.

<code>
<td onmouseover=popup("Some text"); onmouseout=exit();>
<a>MY LINK</a>
</td>

When my mouse is over <td> popup() works, if it moves over link (in same td) exit works and then again popup. My Problem is that sometimes the exit() function works before popup() and I the popup window is stuked.

Can you help me to get over this???
Why don't you try putting the onmouseover in the <a> tag instead?
Feb 15 '07 #2
dorinbogdan
839 Expert 512MB
For IExplorer you can use onmouseenter event, or write a function and set window.event.cancelBubble = true.
For other browsers, you should call event.stopPropagation() from within the event handler function.
Feb 16 '07 #3

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

Similar topics

5
by: c.anandkumar | last post by:
Hi All - I am trying to do the following, 1. Get a piece of HTML from a db 2. Display it on my page with a requirement - clicking on any links in that HTML should not take me away from the...
5
by: Patrick | last post by:
Hello I have the following problem. I have an aspx Page. This page contains an ASP-Table Object. So in that table, I have a linkbutton. So, I can't edit the event of that button trough the...
6
by: Joseph Geretz | last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to...
0
by: guyarkam | last post by:
I have the following code in which I use events to read on eth or serial port when data commes in. The ASCHFProtLib library is a third party library that I have to use as it is. Unfortunately this...
1
by: vmoreau | last post by:
I have a text and I need to find a Word that are not enclosed in paranthesis. Can it be done with a regex? Is someone could help me? I am not familar with regex... Example looking for WORD:...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.