English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi all

what is the best way and best language to organize the photos in website ? PHP or javascript ? Should i create a single page to display all the images ?? I have no idea of how to create an image gallery.. How webshots do it ?

thanks..

2006-09-07 21:24:34 · 3 answers · asked by sathesh 1 in Computers & Internet Programming & Design

3 answers

There are at least 2 ways to do this.
1) Simple html can be used to display thumbnails then click on the thumbnail to view the expanded picture.
Thumbnails can be the expanded picture resized using html or a compressed image (the preferred method).

2) Server processing which will look at a specific directory and display all images that it finds (a more advanced method).

Method 1 can use javascript to refine the view and also to display the expanded image in its own window.

2006-09-07 21:51:09 · answer #1 · answered by AnalProgrammer 7 · 0 0

if you can do it with javascript it is better than the PHP. Because javascript is a client-side language and the client is responsible for all the process load.

You can create one page which shows only 20 images per page. you can link to the other images 20 by 20...

2006-09-08 05:33:18 · answer #2 · answered by blackeagle81 2 · 0 0

Here is a tutorial that teaches you how to create an image gallery with javascript. Maybe it will help you to understand it better. I would go with javascript for what you want. Check out this tutorial...

http://jjames.info/Tutorials/Tutorial1/tutorial1.php

2014-02-21 17:53:02 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers