Log in

View Full Version : frames challenge



xzaqus
09-18-2006, 10:11 PM
I want to put an iFrame on my site, say 300 x 400. And i want to display only a specific part of some other page. FOr example, say I want to display only the Picture part of http://www.cnn.com/ (assuming the picture is 300x400).
I do not want to see other things from that page.

Any one, any help, any suggestions?

in short, i want to specify the coordinates of the orginal source in my frames page.

blm126
09-18-2006, 11:51 PM
I guess you could add something like this


iframe{
overflow: hidden;
clip:rect(100px,50px,50px,50px);
}

to the css, but I really don't know why you would want to.

xzaqus
09-19-2006, 12:06 AM
either i did wrong or it didnt work.
Let me re word my question

Below is the code
<p>
<iframe name="I1" width="304" height="320" src="http://www.cnn.com" scrolling="no" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></p>

</body>


Now when I load this page, I want to see ONLY PIC that is there. I do not want to see CNN.com, search, any news links, anything else, etc. The frame should show ONLY the pic (assuming the size of the pic is same as the size of frame)

warandchaos
09-26-2006, 10:57 PM
if its just an image id use the
<img src="were it is"></a>