473,652 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iFrame: how to display specific area of external website

2 New Member
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:relati ve; // 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.infot huis.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 61389
navshat
1 New Member
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:relati ve; // 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.infot huis.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
deknoopjes
2 New Member
Nope, no answers received and question is still open!
Dec 12 '07 #3
wasabi8899
1 New Member
Bump...

I have the same question. Does anyone knows ?

Thank you
Dec 23 '07 #4
nothing1
30 New Member
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#bott om)
Dec 24 '07 #5
Hi, you can do this using the following code.

<DIV ID="testDivfram e"
STYLE="position : absolute;
left -400px; top: -200px;
clip:rect(191px 1205px 460px 455px);
"><iframe SCROLLING=NO
width="660" height="905" src="http://www.stokepcsupp ort.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
shuvogm
1 New Member
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
1642
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 code, appreciated Jackie
3
1484
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 pushed. Returning to top of page when a button near button of page was last pushed looks confusing. Thanks, Charlie
0
946
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 the same thing with code, how do I do it? Would someone should be a code sample please? I'm using VB.net/VS.net Thank you in advance
6
6118
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 have header and footer defined on the web page. How could I write the list to the body session like a specific area, a table or a list box control? Thanks in advance.
4
1638
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 anyone help me with this ? i have a pages with html and table all scatter there..now i want just specific table from the page and all records in that page, i was successfull somehow but still have problems ,here are they..
2
5603
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
1581
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 inline frames if so how --------------------------
3
3919
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 status box refresh, but the whole page refreshes for me :/ So can any of you pro people please edit and post back the correct code for my server status box so that only the box refreshes and not the whole site? Thank you :D <center> </style>...
1
2287
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
8370
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8283
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8704
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4147
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.