|  Preserved Topic: Changing multiple graphics with a rollover. (Page 1 of 1)  | |
|---|---|
| Obsessive-Compulsive (I) Inmate From:  |  posted 08-04-2000 20:36 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 |  posted 08-04-2000 20:58 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:  |  posted 08-04-2000 21:48 The one in the handson section? | 
| Maniac (V) Mad Scientist From: 100101010011 <-- right about here |  posted 08-04-2000 22:33 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:  |  posted 08-04-2000 22:35 Thanks a lot, I udnerstand how that works now :-) | 
| Obsessive-Compulsive (I) Inmate From:  |  posted 08-04-2000 23:01 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 |  posted 08-04-2000 23:49 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:  |  posted 08-05-2000 19:19 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 |  posted 08-05-2000 20:50 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: |