thickbox gallery |
[eluser]sl3dg3hamm3r[/eluser]
hey there I know thickbox might not be the main-topic in this forum, but I don't feel like opening hundreds of accounts in different forums ![]() Maybe somebody knows about: I'd like to make a small gallery, as described under examples here. With one difference: I would like to show only one (not all) thumbnail. When I click on it, thick-box would let me page through all the pictures. Any idea how to make that work? Thx for any tipps Oliver
[eluser]slowgary[/eluser]
Look at the 'gallery images' example. It shows you how to do multiple images. If you only want to show 1 thumbnail, just don't put anything inside of the other <a> tags, or use CSS to hide them. So: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" This is a working example. I basically just took the gallery example they use on the site, changed all the links to absolute, then removed the 3 images from within the links (all except the first one).
[eluser]sl3dg3hamm3r[/eluser]
ah, empty links... I wasn't creative enough to figure out, many thanx! ![]()
[eluser]umefarooq[/eluser]
i have some thing for you i created one anchor_img() helper will help you alot to create your photo gallery. here is helper Code: function anchor_img($uri = '',$img = '',$attributes = '') here how you can use it. Code: $img = array('src'=>'path_of_img/img.jpg','attributes'=>'value'); you can put this whole stuff in a loop to create your photo gallery with thickbox or any lightbox stuff. any problem just let us know
[eluser]sl3dg3hamm3r[/eluser]
Jep I wrote also a helper for myself - it is little bit more specialized and fitted to the needs of my little cms, that's why it is not much of any reuse and I won't post it here ![]() |
Welcome Guest, Not a member yet? Register Sign In |