View Full Version : not sure where to ask this.....
chapman
06-11-03, 03:46 PM
Hey, I am looking for a photo gallery type script (probably javascript) like they have on ebay's auctions... one with the main "big" photo, then to the side of it little thumbnails for the rest of the photos for that page. then when you click on the thumbnail photo it becomes the main photo.. Does anyone know of a script out there that will do this?
I was not sure where to post this question, i just did it here.. if the moderators think that it would be better somewhere else please feel free to move it..
any response would be greatly apprecited!
thanks in advance
-Joe
Daniel Bahl
06-11-03, 06:23 PM
Can you use PHP on your server ?
phillyhotshots
06-11-03, 07:52 PM
If you can use PHP on your server and have a MySql datadase, you can use Coppermine!
http://www.chezgreg.net/coppermine/
Demo is available on the site or go check out the sites I am using it on: http://www.phillyhotshots.com (HotShot Pics) or http://www.brewbackups.com (Gallery).
Hope this helps!
chapman
06-11-03, 09:18 PM
yes, php and mysql are both installed on the server.. it is a very functional web server.. has about any add-ons available
chapman
06-12-03, 07:22 PM
no, i am not looking for something like coppermine... I need something like ebay has....
--------------------- thumbnails
|.........................|........ here
|.........................| ........ [-]
|..........big...........| ........ [-]
|.......photo .........| ........ [-]
|.......here............| ........ [-]
|..........................|........
---------------------
then when you click the thumbnail it becomes the big picture...
does anyone know of a script like this?
amailer
06-12-03, 07:36 PM
is there no javascript for that...? zooming the pic onCLICK?
chapman
06-12-03, 07:51 PM
like they have on ebay.. if you go to an auction with multiple photos
hey... i saw a similar post somewhere else on the board...
amailer
06-12-03, 08:02 PM
he wrote it the same style but its 2 diffrent things lol
HotScripts.com Forums > Hot Discussions > PHP & mySQL > PHP > looking for a script
derek4716
06-15-03, 02:29 PM
http://www.bulls2.com/indexb/clicktoenlarge.html ;)
ridwank
06-15-03, 11:00 PM
Originally posted by chapman
no, i am not looking for something like coppermine... I need something like ebay has....
--------------------- thumbnails
|.........................|........ here
|.........................| ........ [-]
|..........big...........| ........ [-]
|.......photo .........| ........ [-]
|.......here............| ........ [-]
|..........................|........
---------------------
then when you click the thumbnail it becomes the big picture...
does anyone know of a script like this?
I FOUND A SCRIPT JUST LIKE WHAT U WANT
I got it from http://home.clara.net/gwsmith/photos/tower/index.html
thanks to that site
The you only have to put the image file name on the bottom of this script, and just type the image description.
For the thumbnail image:
you have to make a smaller picture from the original image, then name it with "t_" at the prefix filename
example :
for image is "yourimage.jpg"
the thumbnail is : "t_yourimage.jpg"
i u like to try, here's the script :
=================================
<script language="JavaScript">
var Browser = navigator.appName+navigator.appVersion.charAt(0);
var MS = navigator.appVersion.indexOf("MSIE");
var isOptimumBrowser = false;
if (MS>0)
{
Version = parseInt(navigator.appVersion.substring(MS+5,MS+6) );
if (Version>4) isOptimumBrowser = true;
}
else if (navigator.appName=="Netscape")
{
Version = parseInt(navigator.appVersion);
if (Version>4) isOptimumBrowser = true;
}
function setPicture(Picture,Title)
{
document.images["BigPic"].src = Picture;
if (isOptimumBrowser)
{
document.getElementById("PicTitle").innerHTML = Title;
}
}
function writeGallery(Gallery)
{
with (document)
{
write("<h1>Click on a thumbnail below to view a picture</h1>");
var j = 0;
var first;
write("<center><table>");
for (i in Gallery)
{
first = i;
if (j%5==0) write("<tr>");
write("<td><a href='");
write('javascript:setPicture("');
write(i);
write('","');
write(Gallery[i]);
write('")');
write("'><img class='thumbnail' src='t_");
write(i);
write("'></a></td>");
j++
if (j%5==0) write("</tr>");
}
write("</table></center><h1 id='PicTitle'>");
if (Browser=="Netscape4")
write(" ");
else
write(Gallery[first]);
write("</h1>");
write("<center><img name='BigPic' class='picture' src='");
write(first);
write("'></center>");
}
}
</script>
<script language="JavaScript">
var Gallery = new Object;
Gallery["image1.jpg"] = "Looking to the north (and the Firth of Forth)";
Gallery["image2.jpg"] = "The south look (over Edinburgh)";
Gallery["image3.jpg"] = "Looking to the east (and Portobello Beach)";
Gallery["image4.jpg"] = "The west look (and Arthurs Seat)";
writeGallery(Gallery);
</script>
</body>
</html>
ridwank
06-15-03, 11:28 PM
Originally posted by amailer
is there no javascript for that...? zooming the pic onCLICK?
There's a lot of javascript like that (Zoom on click)
The thumbnail uses the real picture, but it shows in a smaller size on the HTML image properti.
It takes a same loading time with the original picture.
Can you imagine the LOADING TIME ?
if the real picture size is 600x500 pixel with 50.000 byte,
resize to 60x50 only at the HTML image property with the same byte. and ..., used for a thumbnail .
wow.... what a wasted time
I never use image scretching, or zooming on the HTML Code,
which shows the same file between thumbnail and the original pciture.
Im always use different file for thumbnail & the original picture.
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.