wait for an object.mouseover to execute a function

C

Charlie T

Hello,

This is somewhat of an easy task in other languages, but for some
reason I can't figure it out in JavaScript.

I have a function "getData( )" The function will be contained in side
of a DIV.

Example:
//<DIV>"javascript:document.link2Watch.onmouseover(getData(data))</DIV>
//<DIV>"javascript:document.link2Watch.onmouseover(getData(otherData))</DIV>

//<a href="#" name="link2Watch" onmouseover"">Object to watch</a>

When someone runs their mouse over a particular link (object) I would
like my function to be executed. The function will be spred throughout
my webpage, so I need to somehow capture the mouseover event.

Does anyone understand? Can anyone help?

Thanks Much....
 
M

Mike Foster

Charlie said:
...
When someone runs their mouse over a particular link (object) I would
like my function to be executed. The function will be spred throughout
my webpage, so I need to somehow capture the mouseover event.
...

Perhaps the technique used in the following demo will be helpful:
http://cross-browser.com/toys/link_interception.php

There are other techniques - but I'm not sure if I understand what
you're trying to do. Is the page online?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top