Click to See Complete Forum and Search --> : Not sure how to do this.


---
11-12-2003, 08:01 PM
Hi,

I have a page of 110 thumbnailed pictures.

I also have 1 html page for every thumbnailed picture, so when you click the thumbnailed pic the new page opens with the large pic and different text for each pic.

So what I want to do is to have a script that will just make a page and put in the pic and the text I tell it to.

Because basically right now I have 110 pages and if I want to change something I need to change it 110 times :(

Can JavaScript do this?

Thank you for your time.

J

agminer
11-12-2003, 08:18 PM
Simple answer is yes it can. I have developed a site for a photo shop.
http://home.mchsi.com/~auminer/etc/aands/1home.htm

The basic page refers the image and size to showgallery which then parses the url for the info. You would need to add the text and parse for it. This should get you started.

---
11-12-2003, 08:38 PM
Wow, thank you for the quick reply!

I am new to JavaScript, but I understand how the pictures are called up. However, I can't understand if I wanted some text beside the picture how would I go about doing that?

Thanks again,

J

agminer
11-12-2003, 10:35 PM
After parsing (getting the info) the text into a varriable, then document.writeln(var) into the doc similar to what was done with the image.

An alternate would be to use frames on the display page with the text in one frame and image in another. The text could be "labeled" with the <a name="imgname"> tag this ties the img and text together and you would not have to pass/parse more info through the url.