Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RollOvers w/ imageswap and changing images without restore

    I have one page with four rollovers. I need to be able to keep the rollover effect until I click on one. A click will change the image to one that is supposed to stay until one of the other ones is clicked. Anyone have ideas on how to do this?

  • #2
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I dont have any of the code I'e used as it didn't work. My conflict I can get past is the rollover restore is called on Onmouseout, the image swap is called on OnClick, how do I get the onmouseout to not restore the image when its mousedout

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    Dont use the onmouseout event handler if you dont want anything to happen onmouseout.

    Show us the code you have so far.
    Last edited by JohnKrutsch; 06-19-2002 at 10:02 PM.

  • #4
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I figured it out thnx.

    This is what I was trying to do.

    http://www.sandiegomedia.com/newtext/design-value.html

    Notice the mouse overs, and when you click on one it no longer has a mouseover until a different nav image is clicked

    Thnx for the effort though

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Atlanta, GA.
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Were you just looking for a script ?
    If so maybe this should have been posted in the "Request a Script Forum"

    If you are developing your own I would suggest using a global variable that holds the value of the "clicked" image. In your mouseout code you would check this value and if it was the same as the image you were mousing out of you would do nothing.

    However if you just want some demos I have a script that I have not yet had time to properly incorperate into my site but here are some examples of what it can do,

    Image Sticks on Click
    Third image on click
    Third image on Click - 4th image on mouse out of clicked
    Same as above but using only 4 images


  •  

    Posting Permissions

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