View Full Version : position within iframe


shf01
10-27-2005, 04:28 AM
Hi,

I was thinking, it is possible to make my main.html with a iframe to only display a certain part of another html? ie to display an absolute position WITHIN the iframe.

For example,

I have a html with some words and picture like so:

This is a html to be displayed within an iframe of another html

pppppppppppppppp
ppppppssssppppppp
pppppsssssspppppp
ppppppssssppppppp
pppppppssppppppp
pppppppppppppppp
pppppppppppppppp

The above is the whole picture.


can I program a iframe to have only display the following:-


This is the main html that only captures a part of the picture.
---------
|ppssspp|
|psssssp|
|ppssspp|
|pppsppp|
----------

I hope the explaination is helpful.

I thinking of displaying a certain part of the picture at a time using iframe, so I do not have to cut the picture up into small pieces.

Any help would be very much appreciated.

Thank you.

MaGiCSuN
10-28-2005, 03:18 PM
add this to your <iframe> tag:

scrolling="no"

then position the image on the page that loads into the iframe. That should do it :) because people can't scroll the iframe, they can only see what the iframe shows them

Love,
Mirna