06-01-2011, 06:22 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: May 2009
Posts: 175
Thanks: 9
|
Javascript Array
I've created a property website where i have 15 images displayed for each property. At present they are displayed as a lead image at full size and then 15 thumbnails each of which when clicked (using javascript onclick function) display as the lead image. I want to add a <- and -> arrows which u user can click to go through the images one by one (i.e. when they click forward the next image becomes the lead image). To do this i am thinking i need to store all 15 image urls in a javascript array which i then access using a javascript function every time a user clicks -> next image or <- previous image. How do i start going about doing this? Any help much appreciated. I obviously have an array in the php which i access to display the 15 images on the page.
|
|
|
|