how can I get produced event?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    how can I get produced event?

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

    <img onmousemove="ha ndler(????????) ">
    -----------------

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

    thanks


  • Lasse Reichstein Nielsen

    #2
    Re: how can I get produced event?

    "<- Chameleon ->" <cham_gss@hotma il.NOSPAM.com> writes:
    [color=blue]
    > I have this code:
    > -----------------
    > <script>[/color]

    <script type="text/javascript">
    ![color=blue]
    > function handler(the_eve nt) {.............. }
    > </script>
    >
    > <img onmousemove="ha ndler(????????) ">[/color]

    onmousemove="ha ndler(event);"

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Lee

      #3
      Re: how can I get produced event?

      <- Chameleon -> said:[color=blue]
      >
      >I have this code:
      >-----------------
      ><script>
      >function handler(the_eve nt) {.............. }
      ></script>
      >
      ><img onmousemove="ha ndler(????????) ">
      >-----------------
      >
      >how can I send the produced event (from onmousemove) as parameter in
      >function handler????[/color]

      <img onmousemove="ha ndler(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.

      Comment

      Working...