Problem with using onMouseDown

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Weston C

    #1

    Problem with using onMouseDown

    I'm trying to use onMouseDown to build a certain behavior into a
    javascript application (see

    for the gory details, but essentially I want a pop-up menu to appear
    when I
    hold the mouse down on an image element for at least one second).

    However, I'm finding that Mozilla pops up its own menu when I do this,
    which will definitely get in the way of my own pop up. How do I get
    around this?
  • Thomas 'PointedEars' Lahn

    #2
    Re: Problem with using onMouseDown

    Weston C wrote:
    [color=blue]
    > [...] but essentially I want a pop-up menu to appear when I
    > hold the mouse down on an image element for at least one second).
    >
    > However, I'm finding that Mozilla pops up its own menu when I do this,[/color]

    If it is the secondary mouse button that is pressed. Otherwise
    Mozilla rv:1.5 and later could resize the image.
    [color=blue]
    > which will definitely get in the way of my own pop up.[/color]

    Yes, your design is flawed.
    [color=blue]
    > How do I get around this?[/color]

    With normal `img' elements you cannot and that is a Good Thing.


    PointedEars

    Comment

    Working...