Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Good way to display Images on page?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hi all,
I'm not sure if this or the html forum is the correct forum, but since my code is in ASP, I'll start here...

The question is, I want a simple web page (ie 6 or 7) which will display images, but with some very basic image tools--mainly Zoom in/out--something like is the default if you view a jpg in a standard IE page. However--I *don't* want a simple <a> tag or thumbnail link which when clicked on opens a new window--I want to stay in the same page without reloading and the user having to hit 'back' after viewing each image.

For example I have a list of thumbnail images in a iframe (this part I have coded and it's fine). Then below the iframe, I want the rest of the page real estate to be blank by default, and then whichever thumbnail I click upon fills that space with the fullsize image.

HOWEVER...while I can do that by just using an <img> tag in that space--it doesn't appear that that tag has the capability to zoom in and out. Plus, I can't seem to get the <img> tag to automatically maintain aspect ratio of the image in the 'scale', 'zoom', or 'clip' modes which I've seen in VB image controls.

Bottom line--do I need some 3rd party activeX control for this, or is there a standard html or ASP way to accomplish this?
Thanks
--Jim
 
You could use Javascript to increase or decrease either the width or height of the image. Then you would just have to either use existing mouse events or provide a set of buttons that increment or decrement the size for the dimension you chose.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top