Open photo in own window - no extra space around photo

R

RC

I want to display photos and when the user clicks on one the photo gets
displayed in its own window. This is what I"m currently using.

<A id="picAnchor" target="_blank" href="../Photos/somePic.jpg"><img
src='../Photos/ etc... </A>

It works great - as expected the photo shows up in a new browser window. The
thing is that I want the photo to show up in its own window - but to have
the new window's size conform to the size of the image (i.e., no extra white
space around the photo). Is there a way to do that without having to "know"
ahead of time the dimensions of the pic?

Thanks!
 
B

bruce barker

load a page that references the image. with client script on the "onload()"
event resize the window.

-- bruce (sqlwork.com)

| I want to display photos and when the user clicks on one the photo gets
| displayed in its own window. This is what I"m currently using.
|
| <A id="picAnchor" target="_blank" href="../Photos/somePic.jpg"><img
| src='../Photos/ etc... </A>
|
| It works great - as expected the photo shows up in a new browser window.
The
| thing is that I want the photo to show up in its own window - but to have
| the new window's size conform to the size of the image (i.e., no extra
white
| space around the photo). Is there a way to do that without having to
"know"
| ahead of time the dimensions of the pic?
|
| Thanks!
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top