onclick Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ktrw25
    New Member
    • Feb 2007
    • 17

    onclick Help

    I have an editor that has a minimum, maximum, & current value.
    Example Min: 20, Max: 100, Current: 50

    The current value is displayed in a text box & I have buttons that can increase or decrease the current value (using javascript) depending on the button clicked. This is working great, but when clicking one of the buttons the current value will only change once.

    Example: if the current value is 50 and I want 60 then I would have to click the increase button 10 times.

    I would like to be able to "hold down" on the button and have the value keep increasing (or decreasing) while their respective buttons are held down. Any help would be great.

    Thanks
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hmmm ...

    may be the 'onmousedown'- and 'onmouseup'-events will help?

    kind regards

    Comment

    • ktrw25
      New Member
      • Feb 2007
      • 17

      #3
      Originally posted by gits
      hmmm ...

      may be the 'onmousedown'- and 'onmouseup'-events will help?

      kind regards
      I'll try those and post my results.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        ok :) ... i'm looking forward for it ... in case you encounter problems with it feel free to post back here ...

        kind regards

        Comment

        Working...