How to partially embed image?

D

Daniel Metzger

I am trying to embed an image into a web page, but only so that it appears
partially on the user's screen, like a corner, and the full image can be
viewed by rightclicking and selecting "View Image".
How would I do this?
 
F

freemont

I am trying to embed an image into a web page, but only so that it appears
partially on the user's screen, like a corner, and the full image can be
viewed by rightclicking and selecting "View Image". How would I do this?

Crop the thing, put the cropped one on the web page, and link to the full
size. :-\
 
D

dorayme

Daniel Metzger said:
I am trying to embed an image into a web page, but only so that it appears
partially on the user's screen, like a corner, and the full image can be
viewed by rightclicking and selecting "View Image".
How would I do this?

What about a simple click:

<a href="pics/pic.gif">
<img style="position:absolute;left:-400px;top:-200px;width:600px;
height:400px;" src="pics/pic.gif" alt="blah">
</a>
 
B

Bergamot

Daniel said:
I am trying to embed an image into a web page, but only so that it appears
partially on the user's screen, like a corner, and the full image can be
viewed by rightclicking and selecting "View Image".

So you're going to make the poor user download a full-size image whether
they want to or not? That's kind of rude, don't you think?

As freemont said, make a thumbnail of the portion you want initially
shown and link to the enlargement. Your visitors will appreciate it.
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top