Forum Moderators: open

Message Too Old, No Replies

Using iframe to Only Show a Certain Part of the Page

Using iframes to only show a small part of the target page

         

someone788

8:09 pm on Aug 27, 2006 (gmt 0)

10+ Year Member



At first I posted this in the HTML section, but it appears that this can't be done with simply HTML, so hopefully it is able to be done using Javascript :)

I was working on iFrames, and I need to show a certain portion of the page (an area around the bottom left to be exact), in an iframe with about 100px width and 50px height. Note, that the page I am iframing is not mine, so I can't edit an anchor name tag into it. I am trying to position the iframe around a number on that site which continually updates. There is an image by that number with a class tag, if that helps at all (Don't care about image really, just thought it might help to position the iframe around the number which is next to the image):
<td align="right"><img class="this" src="URlofImageHere"></td> [Continually updating number is here]

Here's an example:
Say I wanted to put an iframe of webmasterworld.com on a page, but have the iframe sized to only show the "Forum Index" text at the top left...how would this be done?

Thanks!

defIEd

11:19 pm on Aug 27, 2006 (gmt 0)

10+ Year Member



I doubt that's possible.

I would try to:
- 'mirror' the page through php or whatever (sockets)
- filter the html of the mirror page , leaving you with what you want to retrieve
- display that in an iframe or whatever you would like it to be displayed in.

I don't think you can position an external site in an iframe.