473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

iFrame: how to display specific area of external website

I want to display a specific area of an external website using iFrames. A year ago I created such code successfully, but lost this code due to a crashed computer. Googling for any solutions did not help me so far.

Any hints on how to achieve this (again)?

This is what I have so far:

<div style="
position:relative; // used for positioning and may or may not be required
background: #FCC; // background color of div may or may not be seen
height: 0; // height of window (div) that contains the iframe content
width: 0; // width of window (div) that contains the iframe content
left: 0; // absolute position of window (div) from the left edge of browser
top: 0; // absolute position of window (div) from the top edge of browser
">

<iframe src="http://teletekst.infothuis.nl/tt.gif?632_01" // location of external resource
width="380" // width of iframe should match the width of containing div
height="283" // height of iframe should match the height of containing div
marginwidth="0" // width of iframe margin
marginheight="0" // height of iframe margin
frameborder="no" // frame border preference
scrolling="no" // instructs iframe to scroll overflow content
style="
border-style: solid; // border style
border-color: #333; // border color
border-width: 0px; // border width
background: #FFF; // background color
">
</iframe>

I only want to see the black area under and above the blue bars of these pages and to "glue" them together to one black area.
Oct 4 '07 #1
6 61332
Hi deknoopjes, I have the same kind of demand. did u get any hits on the code? pls let me know if you do.
Thanks

I want to display a specific area of an external website using iFrames. A year ago I created such code successfully, but lost this code due to a crashed computer. Googling for any solutions did not help me so far.

Any hints on how to achieve this (again)?

This is what I have so far:

<div style="
position:relative; // used for positioning and may or may not be required
background: #FCC; // background color of div may or may not be seen
height: 0; // height of window (div) that contains the iframe content
width: 0; // width of window (div) that contains the iframe content
left: 0; // absolute position of window (div) from the left edge of browser
top: 0; // absolute position of window (div) from the top edge of browser
">

<iframe src="http://teletekst.infothuis.nl/tt.gif?632_01" // location of external resource
width="380" // width of iframe should match the width of containing div
height="283" // height of iframe should match the height of containing div
marginwidth="0" // width of iframe margin
marginheight="0" // height of iframe margin
frameborder="no" // frame border preference
scrolling="no" // instructs iframe to scroll overflow content
style="
border-style: solid; // border style
border-color: #333; // border color
border-width: 0px; // border width
background: #FFF; // background color
">
</iframe>

I only want to see the black area under and above the blue bars of these pages and to "glue" them together to one black area.
Dec 12 '07 #2
Nope, no answers received and question is still open!
Dec 12 '07 #3
Bump...

I have the same question. Does anyone knows ?

Thank you
Dec 23 '07 #4
Bump...

I have the same question. Does anyone knows ?

Thank you
There is no real way to do this. You would be able to control the page in the iframe only if it was in your same server and it would be done with javascript. Another only way to do this is if the page contained anchors the you can set the iframe along with the anchor. (ex. http://somesite.com/index.html#bottom)
Dec 24 '07 #5
Hi, you can do this using the following code.

<DIV ID="testDivframe"
STYLE="position: absolute;
left -400px; top: -200px;
clip:rect(191px 1205px 460px 455px);
"><iframe SCROLLING=NO
width="660" height="905" src="http://www.stokepcsupport.co.uk"></iframe>
</div>
This has been useful on alot internal projects for us to monitor certain web applicaitons. Quite time consuming at first but works great.
Oct 27 '10 #6
Try this code below. Its works for me.
Expand|Select|Wrap|Line Numbers
  1. <div style="position: absolute; left: 0px; top: 0px; border: solid 2px #555; width:594px; height:332px;">
  2. <div style="overflow: hidden; margin-top: -100px; margin-left: -25px;">
  3. </div>
  4. <iframe src="http://www.centricle.com/tools/html-entities/" scrolling="no" style="height: 490px; border: 0px none; width: 619px; margin-top: -60px; margin-left: -24px; ">
  5. </iframe>
  6. </div>
  7. </div>
  8.  
If it helps give a thanks to: http://extechbuzz.blogspot.com/2012/...c-part-of.html
Dec 23 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: MS News \(MS ILM\) | last post by:
Hello, How do I add some JavaScript into my Response and make the page scroll to some specific area on my page in the Browser when tired few thing it did not work at all Any help and sample...
3
by: Charlie | last post by:
Hi: After posting back, I would like to return to a specific area of page. For example, when my "add to cart" handler posts back, I would like returned page to scroll to where button was...
0
by: Ricky Kam | last post by:
I'm using MODI, after the document is OCR, is there a way to select a word in a specific area? I know it can be done if someone use the mouse and do the selection manually, but if I want to achieve...
6
by: Abel Chan | last post by:
Hi there, I am trying to use ASP.NET to populate list of files with hyper link from a specific directory. The following code works well but it populates the list to the top of the web page. I...
4
by: Hardik Dangar | last post by:
hi friends, i have a bunch of html pages and i want to fetch records from them and i m really confused how i can do after working with regular expressions and other stuffs from last few days can...
2
by: Big Moxy | last post by:
Can I define a <td></tdcell so that it will display the content from some URL (http://yoursite.com)? Thank you!
1
by: preet | last post by:
This page achieves the external website content using inline frames http://www.anchorfx.com/forex/daily-trade-signals/forex-action-bias.asp can the same thing be done in javascript without using...
3
by: Martin Stranden | last post by:
Hello, my name is Martin and I am the owner of www.tot1clan.com as you can see, to the very right on my website is a server status box for my BFBC2 server. I have tried to make only the server...
1
by: perhapscwk | last post by:
is there anyway can use a iframe, and when the page load, the iframe content auto scroll to specific vertical location(such as the center of the whole page) of the page.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.