|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Building dynamic webpages - XML?
I have a little time to kill, so I thought I'd try something new! I have a ton of photos I'd like to put on a web page and I started by making a page of thumbnails that link to the bigger versions. It seems kind of silly to me to go thru and cut and paste the name of each picture to create a new html page. I named the pictures with numbers, so it seems like there should be a way to just increment until I reach the number of pictures I have, but I'm not sure how... I've started reading about PHP (my server doesn't support), Java Scripting (I'm not sure how to pass variables), and XML (I can't even get a Hello World to work! All I see is code!). So, anyone have some suggestions?
|
|
#2
|
|||
|
|||
|
One way to do it is to store your pictures in a relational database and have the pictures indexed, or even categorized. Then you can sort it in whatever way you so desired.
Hope this helps. |
|
#3
|
|||
|
|||
|
well with php is very easy. you just read the dir and output what's in there. with the rest i dont know.
if you find ahost that has php here's the code you can use PHP Code:
make sure you get the dir path right. goodluck =) |
|
#4
|
||||
|
||||
|
Or in Perl
:Code:
opendir(DIR, '/path/to/the/dir'); print "<img src=\"$_\" /><br/>" foreach grep !/^\.\.?$/, readdir(DIR); closedir(DIR);
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
|
#5
|
|||
|
|||
|
Why not try the photo gallery automation script in photoshop?
|
|
#6
|
|||
|
|||
|
I'm with the automate command in Photoshop. It will take minetes to generate a gallery of thumbnails with larger images. Basic information can be added at time of automation then a find and replace command can update the pages to mimic the look of your site.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Building dynamic webpages - XML? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|