![]() Preserved Topic: Changing multiple graphics with a rollover. (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
![]() Anyone have a javascript that will allow me to change the state of two graphics when you roll over one of them? I want to have buttons that change, and then a different image that explains each one. Can anyone help? |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
![]() Yeah, DocOzone's script is perfect for this. It's an amazingly simple yet powerful script, so it might take a minute to wrap your brain around if you're not familiar with programming concepts. |
Obsessive-Compulsive (I) Inmate From: |
![]() The one in the handson section? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Okay if you have Docs script doing the rollovers then you can add a couple of lines to do this. Here is one way: |
Obsessive-Compulsive (I) Inmate From: |
![]() Thanks a lot, I udnerstand how that works now :-) |
Obsessive-Compulsive (I) Inmate From: |
![]() Okay one mroe question. I've got the script set up like this to test my understanding. Unfortunetly, it doesn't work. Can someone tell me why? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Yup it's the name of the image you want to change. I hard coded the name of the image into the swap function (soory should have mentioned it). so there is the line that looks like this: |
Obsessive-Compulsive (I) Inmate From: |
![]() So, I replace every instance of main with 2-1-0.jpg? That's the image being changed. The buttons then also chagne, which isn't working either. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Not quite, its not the actual name of the image (2-1-0.jpg) you need to name the images in your image tags. Like this: |