473,748 Members | 8,773 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 6427
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
3186
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
2258
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
931
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
1471
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
2511
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
3418
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
1523
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
4626
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
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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
9548
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
9374
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...
1
9325
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6796
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
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
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.