OnMouseDown in NN4.7

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry O

    OnMouseDown in NN4.7

    Hi,

    I am having trouble implemeting the OnMouseDown event in NN4.7 when
    used on a Input of type image.

    It works in Mozilla and N6.2

    Is this a limitation or is there a workaround

    Thanks,
    Jerry

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitl ed Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">

    <script language="JavaS cript" type="text/JavaScript">

    function SetPointCoordsF orNetscape(omdE vent) {

    alert('Rising Sun');

    }
    -->
    </script>
    </head>
    <body>
    ClickHere:
    <form>
    <input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
    ONMOUSEDOWN="Se tPointCoordsFor Netscape(event) "
    OnKeydown="SetP ointCoordsForNe tscape(event)" >
    </form>

    </body>

    </html>
  • Stuart Palmer

    #2
    Re: OnMouseDown in NN4.7

    <form onSubmit="SetPo intCoordsForNet scape(event)">
    <input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
    ONMOUSEDOWN="th is.submit";
    OnKeydown="this .submit" >
    </form>

    Try this.
    Have put your function in the onsubmit of the form and it seems to work for
    me in ns 4.75, whether there is a difference in 4.7 and 4.75 i don't know.

    Hope that helps

    Stu

    "Jerry O" <jerry.osulliva n@esbi.ie> wrote in message
    news:cfd2410.03 09020843.7a2050 c4@posting.goog le.com...[color=blue]
    > Hi,
    >
    > I am having trouble implemeting the OnMouseDown event in NN4.7 when
    > used on a Input of type image.
    >
    > It works in Mozilla and N6.2
    >
    > Is this a limitation or is there a workaround
    >
    > Thanks,
    > Jerry
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    > <html>
    > <head>
    > <title>Untitl ed Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    > charset=iso-8859-1">
    >
    > <script language="JavaS cript" type="text/JavaScript">
    >
    > function SetPointCoordsF orNetscape(omdE vent) {
    >
    > alert('Rising Sun');
    >
    > }
    > -->
    > </script>
    > </head>
    > <body>
    > ClickHere:
    > <form>
    > <input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
    > ONMOUSEDOWN="Se tPointCoordsFor Netscape(event) "
    > OnKeydown="SetP ointCoordsForNe tscape(event)" >
    > </form>
    >
    > </body>
    >
    > </html>[/color]


    Comment

    Working...