DotNetNuke Skins and Resources by ThinkofDesign

Forums

Subject: Greybox Image gallery
Prev Next
You are not authorized to post a reply.

Author Messages
domukajoor User is Offline
Active Member
Active Member
Posts: 27


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

Attachment: gallery-Code.txt

domukajoor User is Offline
Active Member
Active Member
Posts: 27


03/13/2007 07:28 AM  
    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 User is Offline
Yellow Member
Yellow Member
Posts: 315


03/15/2007 12:18 AM  
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 User is Offline
Active Member
Active Member
Posts: 27


03/16/2007 09:50 AM  
again thank you for your help,it did work
You are not authorized to post a reply.
Forums > DotNetNuke > Skinning in general > Greybox Image gallery



ActiveForums 3.7