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 2 1197
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
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******@hotma il.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 get a
servlet error "cannot find collection".
Not usre if my issue is HTML, JSP, WebSphere or ???
Any help is very much appreciated.
HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
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 patch updating worked fine and
showed the pictures. Now the pictures no longer show when
looking at the source code the absolute path of the file
is correct but will not display the image. I tried it on
another 2000 adv svr and the script worked...
|
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. these are carefully
sequenced and timed in a loop which contains the "action" statement
document.images.src = offGIF;
unfortunately, the *actual* screen updating appears to be 1)
|
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)
|
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 souls can go check it out and tell me how it renders on their
platform/browser combos. I have tested it under W2K, WXP, and System 9 on a
Power Mac 8600:
W2K: IE5.5 and Opera 7.1 (some small issues in Opera)
WXP: IE6 and NS7.1 (in IE6 a strange...
| |
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 in software which
slow crackers down, from things like self-decrypting code to anti-debug
tricks, and most people have a breaking point - if you can slow them down
and waste enough of their time they usually move on to easier targets (and
as there...
|
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 CSS). The
second problem is that the top right rounded corner is not showing up
in the Tier 2 tabs. Could you have a look and tell me if it is
possible to correct? This code seems to work fine in IE 5+ and
Firefox. Note that since I can't post...
|
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 below.
Here is my solution. I converted the application from a Web Site
Project (WSP) to a Web Application Project (WAP). Go to http://webproject.scottgu.com/
and read about the Web Application Project in VS 2005.
Why?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |