Forum Moderators: open
1) Let's say my browser will have an iframe that's in the dead-center of my local webpage. And it's location is fixed.
2) The area I want to frame on the external page will always be in the same location (pixels from left, pixels from top), and will always be the same size (width pixels & height pixels)
3) The external page would somehow have to load with a negative top and left offset so the underlying content "lands" exactly in my frame or window.
Is this possible?
thanks!
jmorga
[edited by: tedster at 11:18 pm (utc) on Jan. 17, 2008]
[edit reason] no urls, thanks [/edit]
I do not think that this is possible, and even if it is it probably wouldn't work across different browsers and resolutions. If you can, you might be able to write a server-side script that retrieves the data that you are looking for and print it to the browser. I guess it all depends on what you are looking to retrieve from the external site, though.
for example here --> pulling the radar off intellicast.com (which is always exactly in the same place). Just paste in the source site and fiddle with the settings.
#outerdiv
{
width:756px;
height:496px;
overflow:hidden;
position:relative;
}
#innerIframe
{
position:absolute;
top:-546px;
left:-349px;
width:1280px;
height:1200px;
}
<div id='outerdiv'>
<iframe src="http://www.intellicast.com/National/Radar/Current.aspx?location=USNY0850&animate=true" id='innerIframe' scrolling=no></iframe>
</div>