how can I get produced event?

Discussion in 'Javascript' started by Guest, Dec 4, 2003.

  1. Guest

    Guest Guest

    I have this code:
    -----------------
    <script>
    function handler(the_event) {..............}
    </script>

    <img onmousemove="handler(????????)">
    -----------------

    how can I send the produced event (from onmousemove) as parameter in
    function handler????

    thanks
     
    Guest, Dec 4, 2003
    #1
    1. Advertising

  2. Guest

    Lee Guest

    <- Chameleon -> said:
    >
    >I have this code:
    >-----------------
    ><script>
    >function handler(the_event) {..............}
    ></script>
    >
    ><img onmousemove="handler(????????)">
    >-----------------
    >
    >how can I send the produced event (from onmousemove) as parameter in
    >function handler????


    <img onmousemove="handler(event)">

    Netscape (Mozilla) passes the Event object to the event handlers as
    an argument named "event". IE has a global variable named "event",
    so you can refer to it by the same name.
     
    Lee, Dec 4, 2003
    #2
    1. Advertising

  3. "<- Chameleon ->" <> writes:

    > I have this code:
    > -----------------
    > <script>


    <script type="text/javascript">
    !
    > function handler(the_event) {..............}
    > </script>
    >
    > <img onmousemove="handler(????????)">


    onmousemove="handler(event);"

    /L
    --
    Lasse Reichstein Nielsen -
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, Dec 4, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    7
    Views:
    1,042
  2. Antoon Pardon

    3.2 can't extract tarfile produced by 2.7

    Antoon Pardon, Dec 26, 2012, in forum: Python
    Replies:
    0
    Views:
    146
    Antoon Pardon
    Dec 26, 2012
  3. Steven W. Orr
    Replies:
    0
    Views:
    158
    Steven W. Orr
    Dec 27, 2012
  4. Ian Kelly
    Replies:
    0
    Views:
    132
    Ian Kelly
    Dec 27, 2012
  5. Ian Kelly
    Replies:
    0
    Views:
    101
    Ian Kelly
    Dec 27, 2012
Loading...

Share This Page