PDA

View Full Version : I need help changing an image and resetting others onClick


Wallflower
08-28-2006, 03:53 AM
Here is the page I'm hoping to use this on:

http://jjesseatkins.com/flash/

The page I set up there was done using frames, and what I want to do is whenever I click on one of the tabs in the top frame it changes the src of the image and stays that way until another image in the same frame is clicked. So the tab image that is clicked becomes a foreground tab, and the tab that was previously clicked returns to a background tab. Since there are only six images and a background image on that page, it might be as simple as resetting all of the other images on a page once one is clicked. I don't know much about javascript and I'm using mouseOver right now, and it's not really doing what I need. I also tried using the onClick command, but after having clicked all six of the images they all become foreground tabs. Here is a page that I found that is doing it right, but I don't know how it's being done and he's not using frames:

http://n-son.com/scripts/jsScrolling/example4.html

It looks like he's using onClick along with a swapIt function, but I don't know. Thankyou in advance for anyone willing to help -Jesse.