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

Click thumbnail, go to dynamicaly generated page with image

Status
Not open for further replies.

MonicaX

Technical User
Jul 13, 2002
35
US
I'd like to click on a thumbnail and instead of linking to the JPEG and just getting the image in an otherwise blank page, I'd like to have a background image and a back button or whatever. I could create a seperate page for each large image with those elements but that would get mighty cumbersome.

Is there a way to create just one HTML page, sort of a template that could be used to display all the large jpegs, to some how link an image with a standard "palceholder page?"

I's like to do it without a database or serverside technology - javascript perhaps?

Hope this make sense.

Thanks Monica
 
>>I'd like to have a background image

is the background image fixed??? r u open to server side programming or is it strictly HTML???

Known is handfull, Unknown is worldfull
 
I's like to do it without a database or serverside technology"

I dont think this is posible without some sort of server scripting. Unless you have all of the images preloaded in the page and only show the correct one dependant on a passed variable. This would make the page very large, depending on your images, and slow to load.

Cheech

[Peace][Pipe]
 
aha,
i didnt read the query right, my mistake.

i think javascript can be used like this:
Code:
<html>
<body background="TheImage">
<script>
TheLink=location.href.split("=")
TheImage=TheLink[1]
document.write "<img src='"+TheLink1+"'>"
</script>
</body>
</html>

ur popucode must be:
Popup.html?imgpath=Path


try it...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top