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 GilbertHello Carl,
Why not create one page to render the images? Have this page take two parame
ters
on the querystring (group and image id).
Your thumbnail page then renders the links on the image something like this:
http://whatever/ShowImage.aspx?group=xx&imgId=xx
Matt Berther
http://www.mattberther.com
> 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
>
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?grou...gId=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
"Matt Berther" <mberther@.hotmail.com> wrote in message
news:6112706632364035981026077@.news.microsoft.com...
> Hello Carl,
> Why not create one page to render the images? Have this page take two
> parameters on the querystring (group and image id).
> Your thumbnail page then renders the links on the image something like
> this: http://whatever/ShowImage.aspx?group=xx&imgId=xx
> --
> Matt Berther
> http://www.mattberther.com
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment