473,226 Members | 1,346 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,226 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 61280
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.
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.