wait for an object.mouseover to execute a function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charlie T

    #1

    wait for an object.mouseover to execute a function

    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>"javascrip t:document.link 2Watch.onmouseo ver(getData(dat a))</DIV>
    //<DIV>"javascrip t:document.link 2Watch.onmouseo ver(getData(oth erData))</DIV>

    //<a href="#" name="link2Watc h" onmouseover"">O bject 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....
  • Mike Foster

    #2
    Re: wait for an object.mouseove r to execute a function

    Charlie T wrote:[color=blue]
    > ...
    > 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.
    > ...[/color]

    Perhaps the technique used in the following demo will be helpful:


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

    Comment

    Working...