designclash — 2012-11-30T19:34:54-05:00 — #1
I would like to be able to click on a thumbnail images which will display the larger version in a separate div. Preferably the image fades in rather than just appear. Additionally I would like a border to appear around the thumbnail when selected.
I am total newcomer, so please be kind!!!
ralphm — 2012-11-30T23:52:54-05:00 — #2
There are lots of prewritten jQuery scripts for this sort of thing. You can Google things like jQuery thumbnail gallery" etc. and find a lot of examples. Here are some that may or not be what you want, or at least adaptable to your need:
designclash — 2012-12-01T04:16:18-05:00 — #3
Thankyou for your input. The Galleriffic one looks the closest.
In my attachment I have the left hand column which contains the thumbnails and the right hand column which is currently a blank div which I hope to display the selected image.
Could Galleriffic be adapted to my current layout? I'd like to keep the layout exactly as it is.
ralphm — 2012-12-01T05:53:13-05:00 — #4
Are you saying that, on page load, you want a blank space where the photos will appear?
Of course that's possible, but I'm not sure if those scripts allow for that. (That's the downside of not knowing how to write them yourself.)
Here is a nice, simple JS gallery that doesn't use jQuery, but just some simple JS:
It has a placeholder image until you click on a thumbnail. You could make that placeholder image a simple, transparent one, so that it looks like there's nothing there, or an image the same color as the background. You can style this gallery to look just like your screen shot, too.
And here's another jQuery gallery I meant to list:
Not what you want, quite, but o well ...
designclash — 2012-12-01T07:14:14-05:00 — #5
The right hand div shouldn't be blank on page load but contain a default image which should be the first thumbnail.
ralphm — 2012-12-01T08:13:13-05:00 — #6
That sounds contradictory ... but anyhow, I think that domsters link is what you want.
That domsters gallery I linked to is from an excellent book by Jeremy Keith, called [DOM Scripting. It's a classic, and explains in detail how that gallery works. (There is a new version of the book [URL="http://www.amazon.com/gp/product/1430233893/ref=s9_simh_se_p14_d0_i3?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=auto-no-results-center-1&pf_rd_r=166CC606239648679375&pf_rd_t=301&pf_rd_p=1263465782&pf_rd_i=domescripting%20keith%20sampbells"]here](http://domscripting.com/book/): )
designclash — 2012-12-01T12:26:20-05:00 — #7
Thanks for the link its on my wish list, which is growing by the day. It has received many good reviews which is a big plus.
Basically I have 2 columns. Click on a thumbnail in the left hand div and a larger version of the images appears in the right hand div.
Thanks again for the help. Much food for thought.
designclash — 2012-12-01T18:20:41-05:00 — #8
Didn't see your earlier reply but yes the domsters link is pretty much what I had in mind.
ralphm — 2012-12-01T18:26:58-05:00 — #9
Yes, it's a really nice bit of code, too. And it can be laid out any way you like—just as in your screen shot. If you need any help with the layout, just let us know.
designclash — 2012-12-01T18:40:50-05:00 — #10
The layout and styling is actually done and exactly like the wireframe. Being a novice I had trouble to start with but it all clicked into place. Starting to enjoy piecing the puzzle together and am thinking I prefer it to working in print!
I should imagine I'll have a few more questions soon but thanks for the input.
ralphm — 2012-12-02T00:36:54-05:00 — #11
Glad it's working out. It's more satisfying and reassuring to get there yourself (at least for the most part).
system — 2014-10-07T23:19:21-04:00 — #12
This topic is now closed. New replies are no longer allowed.