Javascript issues : document.onmousemove

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
maitredede
Advanced
Advanced
Posts: 16
Joined: Wed May 18, 2005 3:26 pm

Javascript issues : document.onmousemove

Post by maitredede »

Hi

In my page, I have a small tooltip working with the document.onmousemove event. I have this :

Code: Select all

document.onmousemove=moveTip;
When I take a look at the DOM inspector (firefox) I see that the onmousemove is something other, your menu functions.

What should I do to let my script work again ?

http://metm.no-ip.org:81/ (in the iframe)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Are you talking about the little yellow box with text in it? If you are that is not a tool tip, that comes from the title= part of the aI string.

As for the document.onmousemove=moveTip, I'm sorry I don't know anything about that or how it functions. If it's supposed to move a tip, then I think you'd have to actually use some kind of tooltip.

Ruth
maitredede
Advanced
Advanced
Posts: 16
Joined: Wed May 18, 2005 3:26 pm

Post by maitredede »

This function actually is moving a div box (named tip because it acts like a tooltip, but with custom html code in)

In the sample using I've found, the moveTip function is used on the document... I'll try to use other way to get the event...
maitredede
Advanced
Advanced
Posts: 16
Joined: Wed May 18, 2005 3:26 pm

Post by maitredede »

It seems that I can get the event onmousemove only in the document object...

How can I do to have both menu and my own script working ?
(using menu v5.728)
maitredede
Advanced
Advanced
Posts: 16
Joined: Wed May 18, 2005 3:26 pm

Post by maitredede »

I think I should put my document.onmousemove= at the bottom of my document, to make it work... I'll give a try...
maitredede
Advanced
Advanced
Posts: 16
Joined: Wed May 18, 2005 3:26 pm

Post by maitredede »

Post Reply