Log in

View Full Version : Image Flipper..



Beechy McFly
05-18-2010, 05:50 PM
Aloha all.. New to the site and coding.. I am not even sure what to call what I am wanting to do?? I will call it an Image Flipper..

Basically I have a wordpress website, and I want to be able to post an image of a cover, and then when you click on it, whether left or right click, it will bring up another image.. And then everytime you click on it it will bring up another image etc all in the one image size.. Any one able to tell me what I need to do and look at?? Thanx.. Again soz for being a nub when it comes to this kind of thing..

djr33
05-18-2010, 05:53 PM
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

It would be easy to customize that to do what you are asking.

Add an event (onclick) to the image and go to the next image.

You can also look around that section for some more scripts that might help you.


Another way to do this would be to use a typical "mouseover"/"rollover" script, but instead of using "onmouseover" and "onmouseout" you can use only "onclick". Just setup a list of images (best as an array) and go to the next one each time.