|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have an asp web page that allows a user to request textual information from an Access Database, the results of this request are then displayed on a second asp web page.
What I want to happen now is that a thumbnail image is also called from the results of the users request, this thumbnail image then needs to have a hyperlink associated with it so that the user can click on it and see the full size image. I don't want to embed these images into the Access Database as there are quite a few. Any suggestions? |
|
||||
|
I run into this situation quite a bit, and here's what I do:
1) Create six fields in your textual information table: Picture, Picture_Width, Picture_Height, Thumbnail, Thumbnail_Width, Thumbnail_Height . 2) Put the corresponding values for each picture/thumb into those six fields in your table. Make sure you put the widths/heights in too. You'll need those so that your page won't take as long to render as it tries to figure out how big the pics are for you (it's better coding practice too!) That's really all there is to it.
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
||||
|
I make all my images the same size and then imbed some php into the site to display the images:
<a href="javascript:popUp('productpopup.php?CODE=<? echo $CODE; ?>')"> [img]images/thumbs/<? echo $CODE; ?>.jpg[/img] </a> Rich
__________________
Me |
|
|||
|
I just read the image with ImageMagick and then figure the heights and widths. Sure beats getting a wrong value in the database, and it has a lot more flexibility than making them all the same size.
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
|
||||
|
What is the need of defining the image width and height in the database? When coding it into the site you just leave the image height and width out of the code and it will automatically display to the image specs.
Rich
__________________
Me |
|
|||
|
Quote:
Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |