0 votes
in Website by
I want to get data from a website but they have ad on header, is there any way I can iFrame the area under header and menus?

2 Answers

+2 votes
selected by
Best answer

You will need to test to get the perfect dimensions, as haven't seen your page so can't tell for sure.
Some options you have :

<div class="wrapper">
    <div class="hidead"></div>
    <iframe width='828' height='465' frameborder='0' allowfullscreen src='somelink. Com'></iframe>

You  can later make a hidead  class in your css and set it to show anything covering the top.
Your css might look like :

    z-index: 1;
    display: inline-block;

    position: absolute;
    width: 150px;
    height: 40px;
    background: #222;
    right: 0px;
    bottom: 6px;
    display: block;
    color: #fff;

Another option is to frame only a certain  Div, this will work Only if CORS is not blocked.. Which might be in majority of cases. If not

$('#target-div').load('site.com #leech-data');

Lastly a technique which would work but is crude, is

<div style="border: 3px solid rgb(201, 0, 1); overflow: hidden; margin: 15px auto; max-width: 736px;">
<iframe scrolling="no" src="https://drhack.net/" style="border: 0px none; margin-left: -185px; height: 859px; margin-top: -533px; width: 926px;">

You can  hide the top by changing the margin-top

simple but good :p
Awesome, I just figured out it :) Thank you
@eirtaza , yeah at times its how you manage to achieve something :)
+1 vote

one way is using backend language e.g. asp, node or php to get and parse the content.

other way is using javascript in your page


and deleting the desired element
Welcome to Ask Techie
Ask questions and receive answers from other members of the community. Hacking,Technology,Gaming,Programming,Blockchain / CryptoCurrency and everything to get you going with your Cyber World.

222 questions

227 answers


688,561 users