473,699 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onmouseover vs. onmousemove

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.

Apr 18 '06 #1
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/
Apr 18 '06 #2
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?

Apr 18 '06 #3
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/
Apr 18 '06 #4
Thanks, Randy.

Apr 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3183
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?
5
2256
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
0
930
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...
2
1469
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
2
2505
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>
1
3414
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
4
1516
Jezternz
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...
5
4622
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">...
0
8618
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,...
0
9178
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, 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...
0
9035
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 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...
0
8885
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 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...
0
7752
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, 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...
1
6534
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 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...
0
4376
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...
0
4631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.