Solved

Image Gallery

Posted on 2012-04-02
3
381 Views
Last Modified: 2012-04-04
I want to create an image gallery like in the attached web site:

http://rachelsimpsonshoes.co.uk/newrange.php

ie.
a) A main image appears and smaller thumbnail images appear next to it.
b) The user can click on the smaller thumbs and the image is then transferred to the larger image.
c) The user can scroll over the larger image to zoom in (is this JavaScript? would this script be open source?)


I've started to replicate this but would like some guidance. So far I’ve:

Created a mysql database which currently contains two tables - t_products and t_images.
The products table records the product details (eg product title, name), and the t_images table records the images details of the product (including the image file name (eg. product1.jpg)).
Each product can have multiple images (up to 5). I've created a column in the t_images table called img_main_ind which flags up which of the images is the main image for each product.
I've created a php file which is querying the tables and currently providing a list of the image file names.

Can you please give me some guidance around how i can now go about replicating points a, b, and c in my site? As you can probably tell i'm not a web designer so any advice is appreciated.
0
Comment
Question by:tonMachine100
3 Comments
 
LVL 4

Assisted Solution

by:elliottbenzle
elliottbenzle earned 250 total points
ID: 37796004
There are a few pre-written scripts out there you can try. Check out this one: http://www.pikachoose.com/
Instructions for installing it are all on the site.
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 37796125
From looking at the "view source" output, this site appears to have been built using DreamWeaver and an older version of jQuery.
<link href="css/960new.css" rel="stylesheet" type="text/css" />
<link href="css/layoutnew.css" rel="stylesheet" type="text/css" />
<link href="css/jqzoom.css" rel="stylesheet" type="text/css" />

<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jqzoom.pack.1.0.1.js" type="text/javascript"></script>
<script type="text/javascript">

$(function() {

		var options = {
				zoomWidth: 560,
				zoomHeight: 390,
				zoomType: 'reverse',
				title: false,
				showEffect: 'fadein',
				fadeinSpeed: 'slow',
				hideEffect: 'fadeout',
				fadeoutSpeed: 'slow',
				showPreload: true
		};
		
	$(".jqzoom").jqzoom(options);
});
</script>
<script language="JavaScript" type="text/JavaScript">
 function swapPhoto(photoSRC, photoHGT, photoWTH, zoomLINK) {
 	document.images.imgPhoto.src = photoSRC, 
	document.images.imgPhoto.height = photoHGT, 
	document.images.imgPhoto.width = photoWTH; 
	document.getElementById('zoomlink').href = zoomLINK;
 }
 </script>

Open in new window

This seems to be at least one part of it:
http://archive.plugins.jquery.com/project/jQzoom

If you want to try to replicate this functionality you might consider copying the CSS and JavaScript (including the jQuery libraries) onto your server.
0
 

Author Closing Comment

by:tonMachine100
ID: 37805268
Thanks guys - pickachoose looks great. I'll post another question if i have any problems implementing it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 31
php documentation 4 21
How to create folders outside the AWS web root hierarchy 3 20
showing numeric numbers 2 11
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now