domukajoor


Active Member
Posts: 27
Posted: 03/13/2007 07:24 AM
Last Edit:
I tried to build an image gallery with greybox using thumbnails but I'm running into problems.I need help,here is my code
domukajoor


Active Member
Posts: 27
Posted: 03/13/2007 07:28 AM
Last Edit:
I know that the URL of the images need to be change,my problem is how to replace the rel method with the onclick.Also what a about the nice_pics?
Vasilis


Yellow Member
Posts: 315
Posted: 03/15/2007 12:18 AM
Last Edit:
Your nice_pics must be an array... So before the links you have to create the array with the URLs of your pics and their captions.
Example:
< script>
var nice_pics = [{'caption': 'Night valley', 'url': 'static_files/night_valley.jpg'}, {'caption': 'Salt flats in Chile', 'url': 'static_files/salt.jpg'}]
< /script>
and then your links:
< ul>
< li>< a href="static_files/night_valley.jpg" onclick="return GB_showImageSet(nice_pics, 1)" title="Night valley">< img src="static_files/night_valley_thumb.jpg" />< /a>< /li>
< li>< a href="static_files/salt.jpg" onclick="return GB_showImageSet(nice_pics, 2)" title="Salt flats in Chile">< img src="static_files/salt_thumb.gif" />< /a>< /li>
< /ul>
domukajoor


Active Member
Posts: 27
Posted: 03/16/2007 09:50 AM
Last Edit:
again thank you for your help,it did work