473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Site logic for showing images

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
Nov 18 '05 #1
2 1179
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
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

Nov 18 '05 #2
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...Id=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" <mb******@hotmail.com> wrote in message
news:61***********************@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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: nc | last post by:
My iterator can find my collection when my Action class calls my jsp directly, however when my Action class calls an html file that is set up with IFrames (one of which is loading that same jsp), I...
7
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some...
1
by: robert | last post by:
hi! there's a line in my Javascript program that makes a change in the appearance of an area of the screen. it is a game program, so there are a cascade of changes after the user makes a move....
4
by: A.Melon | last post by:
Just curious what the group thinks of this recently redesigned site: http://www.laserquest.com/ (Old version is available via archive.org, may be missing some images)
72
by: B McDonald | last post by:
http://www.galtsvalley.com Hi all. I've recently made some major stylistic changes to my site and now it is essentially a new design with some new CSS plumbing. I am hoping that a few hardy...
25
by: Dave Turner | last post by:
I know that its impossible to completely prevent somebody from ripping a site (or cracking software) if that person has the skills and the time/patience, but there are tricks that can be employed...
8
by: johkar | last post by:
I have two problems I cannot work out in the following tab code with Netscape 6. Problems are marked with all cap comments. One is that the background image is not shown in NS 6 (two places in...
0
by: rmgalante | last post by:
I was developing a large web site in VS 2005 as a web site project. I was having problems with the VS 2005 publish tool. It was slow, and provided no feedback. It has other issues as outlined...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.