PDA

View Full Version : Creating a Photo Album


Tombo
03-29-2003, 06:43 PM
Hullo,

In a nutshell, this is what I want to create: Imagine a page with a link. You click the link and a new window pops up of defined size, with no toolbars at the top, only a scroll bar. This new page is a frame set which is divided into two frames (vertically). The frame on the left contains a vertical column of photo thumbnails. This side can scroll. The right side will start out blank, but every time a thumbnail on the left is clicked, it will appear enlarged on the right. The right side will not have a scroll bar. (The enlarged image sizes are no bigger than 520x520.)

My old photo album is here:
http://members.shaw.ca/ttc/albums.htm

The images aren't there, and it works locally, but for some reason it won't work online without the images. The old script is there if you could take a second to view the source to see how I did it.

That example, in a nutshell: Imagine a page that is divided into 3 frames (vertically). The right most frame contains a list of albums. Clicking an album brings a column of thumbnails in the left most frame. Clicking a thumbnail displays that photo enlarged in the middle frame.

Basically, what I'm trying to do is take that list of albums and put it on a separate page. Then, when each album is clicked, a new window, of defined size, will pop up, (the one with 2 frames, described first.)

The problem: In my old photo album, I was using java to "create" html pages and place them in already-existing frame spaces. In this new one I want to create, I'll be using java script to "create" the frameset, as well as those 2 html documents within the frames. This is where I'm encountering problems.

The solution (which I'm asking for help with): There are only 2 things I need to send to this new photo album, the frame set that will pop up in the new window of defined size:

1. the directory containing the images
2. the number of images to display

So, I'm thinking... what if I were to create the frameset manually, (as in, not to have it generated using java script,) and then when the link is clicked, those two variables, (the directory name and the number of images,) will be sent to the "thumbnails" frame (on the left side) of the pop-up window (of defined size.)

It's a mouthful... I know what I'm trying to do, it's just hard to put into words.

So here's the simple question: If you look at the source code in the "albums" file of the page I linked to above... How do I make the page I generate appear in a new window... and a new frameset for that matter.

I hope this makes sense. :)

And another quick question, while I'm here... You know how you can have your style settings in a separate file, (ie. style.css,) and then have the html page refer to that file for it's style settings... is it possible to take a script, such as the one in my example, and put it all in a separate file, then have the html page refer to it for use?

Thanks a lot, this forum has been a big help over the years.

scroots
03-29-2003, 07:41 PM
I built a script for a purpose similair to yours.
take a look it can be seen at
http://fylde1425.westlancashirescouts.org.uk/phse2/phase2.htm

the numbnail images and so great but in your gallery you will have your own thumbnails not ones quickly made by me.
if you like the script i will explain it but i think most comments are still in it

scroots

kasanay
03-30-2003, 09:23 PM
I came across a site that seems to function something like the one you want.
See if this helps:
http://www.coolarchive.com/backgrounds.cfm

Good Luck

Tombo
03-30-2003, 11:49 PM
Thanks guys... but those 2 examples weren't really what I was looking for.

I'm starting to think maybe I should go about this in another manner, or maybe even create each photto album myself, manually, instead of having it all generated using java script.