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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobinSoftware EngineerCommented:
0
James LooneySr. 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.