hcl-bot
February 6, 2008, 11:10pm
1
Hi All,
I am developing an intranet for a company. In the front page, i need to show a smaller version of a image which is attached in another form(document). Once the users click on the image i need to show the larger image.
This is like a photo gallary where you click on the small picture and it enlarges. I want to show only the last added picture(with it’s description) in the front page. I will have another link for the users to go to the archive.
Is this possible?
Please help me.
Thanks,
Buwaneka
Subject: since this is a web application - simply use some HTML
to display both the “thumbnail” and effect the popoup
Look into the standard HTML tags A and IMG. Both could be useful.
for instance if you can calculate a URL for the GIF or JPEG,
you could show on your frontpage
Thats the basics! Of course you have to work out of few details for yourself
a) how to get the needed URL depending on the details of how you have stored the images
b) how to form your HTML and show it on the page depending on how that page is constructed
c) You also need to get the description
and perhaps
d) parameterise the height and width
but thats over to you
Let us know how you get on … or post more info if needed
Subject: RE: since this is a web application - simply use some HTML
You are NOT proposing to use the same image for thumbnail and detail display, are you?
Subject: if there is a separate thumbnail image available
that would be best of course…
(especially if the full image is quite large or the actual file quite large)
but you CAN use the same image and scale it using options on the IMG tag
Subject: RE: if there is a separate thumbnail image available
That’s true, but given, that we are talking about the start page of an intranet here, IMHO performance should have top priority.