Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Variables to a Page?

Status
Not open for further replies.

RonSB

IS-IT--Management
May 21, 2001
2
US
I am creating a site with a photo gallery. I have a gallery frameset with one frame containing a single page with image thumbnails, and another page showing the enlarged image of the selected thumbnail. Right now I have created a separate enlargment page for each image, but it seems to me (I'm kinda new at web page development)that you could create one page with a variable for the image name and just pass a parameter from the thumbnail link to the enlargement page. Is this possible?, easy? I am using Front Page and am not experienced with HTML.

Thanks in advance...
Ron
 
The best way to do this would be to use JavaScript. IN the frame where you show the fullimage put something like:

<IMG SRC=&quot;BLANK.GIF&quot; NAME=&quot;FULLIMAGE&quot;>

Then for each of your thumbnails, create a JavaScript onClick event - something like this:

<IMG SRC=&quot;IMG1_small.gif&quot; onClick=&quot;parent.largeFrame.FULLIMAGE.src='IMG1_large.gif&quot;>

where largeFrame is the name of the frame where you have the full image. You just need to change the src values in the above command for each image. I hope that this helps you a little. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top