SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question onDragOut / onReleaseOutside available in JavaScript (or another scripting language)?

    I am building a website and find that if you click on a menu button, move the mouse away then release the mouse, the button remains in its mouseover state. Is there anyway to prevent this from happening?

    Flash has two functions: onDragOut() and onReleaseOutside() which can be attached to buttons.

    Is there any equivalent in JavaScript... or similar scripting language?

    Many thanks

  2. #2
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try with onmouseup of the body, it seems to trigger even when mouse button is released out of window ...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •