Log in

View Full Version : help with image sizing



jwtelectric
09-22-2009, 01:55 AM
i am creating a web site offline and have a question....it might be lengthy but bear with me please.....
when i click on a thumbnail pic i am openning the pic in full size in a new window
i have seen before on other sites where the pic auto resizes to fit page however with mouse over the pointer changes to a +magnifying glass and upon click image sizes to original and pointer changes to a -magnifying glass upon second click image resizes once again to fit screen....how is this done
thanks

davelf
09-22-2009, 04:06 AM
i am creating a web site offline and have a question....it might be lengthy but bear with me please.....
when i click on a thumbnail pic i am openning the pic in full size in a new window


this to open full size image in new windows


<a href="image.png" target="_blank">
<img src="image.png" border="0">
</a>




i have seen before on other sites where the pic auto resizes to fit page however with mouse over the pointer changes to a +magnifying glass and upon click image sizes to original and pointer changes to a -magnifying glass upon second click image resizes once again to fit screen....how is this done
thanks


i don't get your meaning can you give us the link.

bluewalrus
09-22-2009, 04:16 AM
The magnifying is done by the browser I'm not sure when it's triggered. Possibly if the images width or height passes the opening windows screen size?

For those that don't know what user is referring to try this: http://www.gsfc.nasa.gov/gsfc/earth/pictures/2002/1203apollo17/earth.jpg

jwtelectric
09-22-2009, 08:42 AM
thanks bluewalrus for the example
hope someone can help me

bluewalrus
09-22-2009, 12:45 PM
What size is the thumb you want vs the actual image size, does it have to be a new window or could it be in an overlay? If you can do it in an overlay lightbox would work or some variations of that you could give the thumbs a class with a percent, and remove the background color on the lightbox overlay, and that'd be similiarish.

jwtelectric
09-22-2009, 08:56 PM
page is made with frames
thumbs are on bottom frame
picture opens up in middle frame full size
and has to be scrolled
if pic opens in new window it has to be scrolled
want is to open in new window and auto resize
like the above example that was posted by bluewalrus
thanks

djr33
09-23-2009, 12:55 AM
The resize/magnifying glass is not something you can control. That happens only when a browser loads an image file (not a webpage) and that image is larger than the window. Then the browser loads the image and resizes it to fit, but you can click on the image to view it full size (with scrollbars in the window).
Internet Explorer and Firefox both do this, and other browsers vary. You cannot control this because it is just how the browsers are programmed to handle image files (that you can't program at all).
I hope this explains what you were wondering. So, basically, do nothing, just link to the image, and it will do what you see on the other webpages.