close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Adding a simple lightbox effect to images generated by repeating table function

Thread began 9/17/2012 6:13 am by rikaG_510 | Last modified 9/18/2012 11:40 am by rikaG_510 | 1599 views | 3 replies


Hi Jason,

Thank you, this works great!

But I have a question on Slimbox this time, so I opened a new thread.
[Activate right click --> "Save as" on Slimbox]

Here is what I did -----------

Firstly I added necessary file links (for css and javascripts) within the header.

I had this code just to show thumbnails for my gallery/catalogue page;
<img src="images/Thumbs/<?php echo $row_race2012['Thumbs']; ?>" alt="<?php echo $row_race2012['Thumbs']; ?>" />

To activate slimbox to this, I have to make a link to open a detail(large) image, and also must add rel="lightbox" to this link. The link should look like this (for example);

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>

So after I apply my code to above format, it would look like;

<a href="images/detail/<?php echo $row_race2012['FileName']; ?>" rel="lightbox-detail" title="<?php echo $row_race2012['Title']; ?>" ><img src="images/Thumbs/<?php echo $row_race2012['Thumbs']; ?>" alt="<?php echo $row_race2012['Thumbs']; ?>" /></a>

"FileName" is where I store detail(large) image file name in database.

rel="lightbox-detail" activates slimbox, and "-detail" is added so I can group the entire photos on this page.
You have to have "-" between "lightbox" and whatever name you come up with.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...