SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    Farmington
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onmouseout onclick

    Hi,

    I have 3 different versions of an image and I am modifying the image with onMouseOver, onMouseOut and onClick events.

    The problem is the image after onClick event is being overwritten by the onMouseOut event. How do I void the onMouseOut event after onClick event ?

    default image: image1
    onMouseOver: image2
    onMouseOut: image1
    onClick: image3

    In essence, I want to retain 'image3' after onClick event (moving the mouse should not trigger onMouseOut).

    Is it possible ?

    Thanks
    vmrao

  2. #2
    SitePoint Evangelist hexburner's Avatar
    Join Date
    Jan 2007
    Location
    Belgium
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Set a boolean at onclick, check the boolean in onmouseout.
    FOR SALE: 1 set of morals, never used, will sell cheap


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
  •