Javascript Image Swap
Posted: Sat Jan 30, 2010 9:43 pm
I have a question, I have 2 images, lets say one is the colour Black and the other is the Colour Red. Black is the default image, when they click on the black image it turns red.
Mind you there is going to be 5 lots of this with different colours, and it will randomly generate the images in different positions.
Just wondering the best way to do this. I know I need to have loop it inside a function. Any hits or real world practices would be nice.
Mind you there is going to be 5 lots of this with different colours, and it will randomly generate the images in different positions.
Just wondering the best way to do this. I know I need to have loop it inside a function. Any hits or real world practices would be nice.