Am I right in my understanding here?
The onmouseover event occurs only once at the exact time the mouse
pointer enters into an object's boundaries. In contrast, onmousemove
occurs from the time the mouse pointer enters an object's boundaries
and occurs everytime the mouse pointer moves one pixel as long as it is
inside the object's boundaries. 4 6424
Water Cooler v2 said the following on 4/18/2006 10:34 AM: Am I right in my understanding here?
Yes, within some limitations.
The onmouseover event occurs only once at the exact time the mouse pointer enters into an object's boundaries.
As long as it does not enter another objects boundaries that may be
included or overlapping the first object's boundaries.
In contrast, onmousemove occurs from the time the mouse pointer enters an object's boundaries and occurs everytime the mouse pointer moves one pixel as long as it is inside the object's boundaries.
See above.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thanks for the reply, Randy. As long as it does not enter another objects boundaries that may be included or overlapping the first object's boundaries.
Interesting. What happens in such an event? I am guessing the events
would cascade, right?
Water Cooler v2 said the following on 4/18/2006 11:28 AM: Thanks for the reply, Randy.
As long as it does not enter another objects boundaries that may be included or overlapping the first object's boundaries.
Interesting. What happens in such an event? I am guessing the events would cascade, right?
Test it :)
Put an onmouseover event on a TR element in a Table that changes the
window.status. Then, mouseover the table :) Mousing over the TR will
fire the onmouseover but when it reaches the boundaries of the TD then,
in IE anyway, it stops honoring the mouseover of the TR even though you
are technically still over the TR when you are over a child TD.
The "Test It" is not a sarcastic response though. Many times, you can
learn more from testing it and observing and you get the benefit of
learning it yourself and it tends to stick with you longer.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sven Hanefeld |
last post by:
I would like to change pictures by going over them with the mouse in lighter
ones.
It must be very easy but I can't find the code for the best solution right
now.
Who can help me?
|
by: Iouri |
last post by:
I have added the Overrides proc onMouseMove like
Protected Overrides Sub onMouseMove(ByVal e As
System.Windows.Forms.MouseEventArgs)
...........
End Sub
This proc supposed to fire when I move the mouse. When I am moving mouse
over the form it fires. But if mouse is over any control (textbox, listbox
|
by: Sam |
last post by:
Hi,
I have developped a docking panel that shows when the mouse is over a
button and then hides when the mouse leaves the panel. It works fine
except when there are child controls in the panel and that the mouse
leaves the panel through the child controls. Since the mouse didn't
leave through the panel directely, the panel is not hide.
Here is my method onMouseMove for the inherited panel :
Protected Overrides Sub OnMouseMove(ByVal e As...
|
by: =?Utf-8?B?cm9kY2hhcg==?= |
last post by:
hey all,
i'm using the onmouseover event and i was wondering if there was a way to
repeat the function automatically why the mouse is over the control?
thanks,
rodchar
|
by: ismailc |
last post by:
Hi, I need help please!
Onmouseover it calls a function, but onmouseover the image it changes the cursor from default ot busy the whole time.
I want it to stay to default.
I have set it o default in the div, function & onmouseover but it stil does that
<div id="hoverText2" class="main" style="padding: 5px; position: absolute; display: none; width: 200px; cursor : default;"></div>
| |
by: aotash |
last post by:
This javascript shows and hides description (like alt in image tag). It works in IE but not in Mozilla, what is wrong please help:
<SCRIPT LANGUAGE="JavaScript">
// ############## SIMPLE BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}
// ######### popup text
|
by: Jezternz |
last post by:
This is related to my previous question, however I feel it had nothing todo with "onblur in firefox" so I thought it best to start a new topic.
Ok, basicly I want an event to fire everytime the user moves the mouse at all.
I currently have:
window.addEventListener?
document.addEventListener('mousemove',handler,false)
:document.attachEvent('onmousemove',handler);
Which is all very well, except one problem. I have an iframe in my...
|
by: jkershner |
last post by:
I have a js script inside php code that is connected to mysql, the php code is listing the results from the query then, the onmouseover function is supposed to show the description of the title for that specific title, however, the mouseover is displaying all the descriptions for every title. Also, will you let me know if I have code in here that is not needed? I'm very new to php/js
<script type="text/javascript" language="JavaScript">...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |