Site logic for showing images

C

Carl Gilbert

Hi

I am developing a site that has 5 or 6 thumbnail pages each with 28 image on
each. Each thumb nail has a matching larger image.

So 5/6 groups of 28.

When the user clicks on one of the images, I want to load up another page
showing the selected full size image. I then want to provide the ability to
move back and forward through the collection of images.

Lets say I give each group a number and each image in that group its own
number so I have something like:

[group]
[images]

01
01, 02, 03, 04, .... 28
02
01, 02, 03, 04, .... 28

Is there anyway to have a page for each group and depending on the image
clicked, the page loads the relevant image.

Or even better, have one page that get told which group and which image from
that group to display and also changes bits of text like the title of the
page to detail the group. And provide logic to allow the user to navigate
the collection and detect when the start or the end of the group has been
reached, therefore not providing a next or previous button.

I have the code done to render the page with the thumbnails but would
appreciate some help on the logic to avoid making over a hundred pages to
cater for each image.

And before anybody asks, this has nothing to do with porn!

Kind regards, Carl Gilbert
 
C

Carl Gilbert

So would it be possible to do something like the following:

==============================================================
pass in [group] [image] [max] example(grp=02, img=05, max=28)
http://whatever/ShowImage.aspx?group=02&imgId=05+1&max=28

if not [image] = 01 then
'show the previous button
elseif not [image] = [max] then
'show the next button
end if

[imageToShow] = [group] & [image] & ".gif"
[titleText] = "Group " & [group] & " selected."
----------------------------
{NEXT BUTTON}
http://whatever/ShowImage.aspx?group=[group]&imgId=[image]+1&max=[max]
{PREVIOUS BUTTON}
http://whatever/ShowImage.aspx?group=[group]&imgId=[image]-1&max=[max]
==============================================================

Regards, Carl Gilbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top