techoo
techoo

Reputation: 25

Thickbox jQuery

I have a jQuerycode to preview the pictures in my website, but I do not know the difference between (single.jpg) and (single_t.jpg) in my code. Here is my code:

<a href="images/single.jpg" title="add a caption to title attribute / or leave blank" class="thickbox"><img src="images/single_t.jpg" alt="Single Image"/></a>

can you help me?

Upvotes: 1

Views: 122

Answers (2)

imbondbaby
imbondbaby

Reputation: 6411

single.jpg in this case is the main image file with normal resolution which will normally require more time to load

single_t.jpg in this case is the thumbnail (t is used short for thumbnail) of the file with smaller size. Therefore, it would load faster.

Upvotes: 0

ffflabs
ffflabs

Reputation: 17511

It might be the same image, but if single.jpg is a big, heavy image, then it would make sense for you to display just a thumbnail instead (hence the _t suffix).

Upvotes: 0

Related Questions