Photo gallery javascript with thumbnails

I am looking for a photo image gallery similar to cars.com

http://www.cars.com/go/search/detail.jsp;?tracktype=usedcc&searchType=21&pageNumber=0&numResultsPerPage=50&largeNumResultsPerPage=0&sortorder=descending&sortfield=PRICE+descending&certifiedOnly=false&criteria=K-%7cE-%7cM-_1_%7cN-N%7cR-30%7cI-1%2c7%7cP-PRICE+descending%7cQ-descending%7cZ-10314&aff=national&paId=292115828&recnum=2&leadExists=true 

I can't seem to find anything that does the trick.  I am loading the images from the server using Coldfusion.  I would like to crop the thumbs and then one click to display the image.  And then have that larger preview image be linkable.

Thanks.
tags266Asked:
Who is Participating?
 
James LooneyConnect With a Mentor Sr. Programmer/AnalystCommented:
I just used some rubbish pics from the net for this.

So you'd want your coldfusion to build this, but here is the HTML and small JavaScript you'd want. Throw it in a .html file and open in your browser - click on the small images

<html>
<head></head>
<body>
 
<img src="http://www.modernlifeisrubbish.co.uk/images/illustrations/google-as-a-giant-robot.jpg" name="large" width="200">
<hr>
<img src="http://www.nearby.org.uk/geograph/GoogleEarth_Image_BI2.jpg" onClick="change_large(this.src);" width="75">
<img src="http://laughingsquid.com/wp-content/uploads/fsm-google-doodle.png" onClick="change_large(this.src);" width="75">
 
<script language="JavaScript">
function change_large(src_url)
{
	document['large'].src = src_url;
}
</script>
</body>

Open in new window

0
 
RobinSoftware EngineerCommented:
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
tags266Author Commented:
robinu,

I tried out http://www.monc.se/kitchen/80/lightweight-image-gallery-with-thumbnails earlier and found that it doesn't resize the thumbs..only crops.  This would be fine if i make all copies of the pics as thumbs but i was hoping i'd be able to resize the thumbs Javascript...
0
 
James LooneySr. Programmer/AnalystCommented:
that's a good lookin one. should be a way to modify it.
0
 
RobinSoftware EngineerCommented:
On the bottom part of that page, he describes how to use this gallery show the thumbnails resized instead of cropped.
0
 
tags266Author Commented:
jimjo95,
 Yours seems easiest so far to implement for my needs.  Any easy way to either make the main large image fade when the separate thumbs are created?  Also, any way to add a border around the thumb that was just clicked?
0
 
tags266Author Commented:
robinu,

i did look into the fix with the cropping but couldn't seem to implement.  There was no clear example.  I'm probably going to bypass that solution.  You have earned some points though already as you've been helpful.  THank you.
0
 
James LooneySr. Programmer/AnalystCommented:
Here ya go. I took the StuNichols one and modified it so it shows the full image as the thumb. It won't let me upload the whole zip here even though it is small, so click here to download:

http://staging30.acuityweb.com/simple.zip

Download it, and drop the whole folder in your /www/  then go to:
http://youdomain.com/simple/simple.html
0
 
tags266Author Commented:
Thanks.  you've been helpful.  I took your bare bones javascript tag jimjo, and have added my own custom css classes with it.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.