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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slideshow using form. Can images within show be hrefed? 1

Status
Not open for further replies.

robert89

Technical User
Nov 19, 2003
125
CA
I've created a set of images that the visitor can view using a html form. These are larger versions of images on a thumbnail page. The form has controls and visitor can cycle through. Works great.

Currently, the user visits the thumbnail page, and if they want to view a larger image, they click on a thumbnail. The form page opens with the default image displayed. The user can then click their way through the images.

My problems is that the images are photos representing a sequence of events. If the user clicks on thumbnail image 5, they must click through the first four larger images to get to what they wanted to see.

Is there a way that I can create a link to the form page and have the default image being dispalyed, be the one that the visitor has selected from the thumbnail page?

Can any help?

Thanks,
Bob
 
Try passing a parameter to your form page:
Code:
<img src="thumbnail.jpg" onClick="window.open('formPage.htm?img='+this.src);">
Then parse it in your form page:
Code:
start = window.location.search.indexOf("?img=") + 5;
img = window.location.search.substr(start);
// img variable holds the selected JPG..
That may or may not help ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top