1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Iframe at "0" height? Will it work?

Discussion in 'HTML & JavaScript' started by powerteam, Nov 18, 2009.

  1. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    Ok, so Im on a website that has a Top 50 Referers Page. Im about 90% sure with the amount of traffic I bring to my page, I should be able to make the list, even if Im only number 50, but that means I need every visitor to go to that page.

    I though of doing pop up/under, but since I am promoting an adult site and they are a free adult site, might be a little bad for my conversions. So my solution is doing an iframe. Would work great because obviously, every hit I get, they get to.

    Now the most important part of this, is if I set the iframe to "0" height, will it still count as a page load? I mean...the url is still there, and the page should load, but you just wouldn't be able to see it right?

    The iframe code im using:
    Code:
    <iframe src ="http://www.abc123.com" width="100%" height="0">
      <p>Your browser does not support iframes.</p>
    </iframe>
    Please let me know if this would work or if there is some better way to make this happen.
     
  2. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    You'll probably want to make it 1x1 to ensure that it loads in most browsers. Make sure that the referer site isn't using a framebuster. Also, if they check the site, you're done.
     
  3. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    If they check it and pull me big deal. I lose them. lol. It's not like there paying me or anything, just trying to get some free promotion from them for as long as I can.

    How do I know if they have frame buster? Im assuming by the name of it, it would break the frame and load the full page?

    For a 1x1 I should do:


    Code:
    width="1%" height="1" 
     
  4. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    EDIT: width="1" height="1"

    Yeah, if they use a framebuster, you'll know pretty quickly. Check with a few different browsers.
     
    • Thanks Thanks x 1
  5. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    Thanks for the help. Now its time to implement it and hope it works!
     
  6. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    I just corrected my post above. You don't need to add "px" to the end of the length parameters. That is only necessary with CSS.
     
  7. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    ok...so i believe it's working. Another thing I should have mentioned, is I have a dmr set up to hide referer to my aff link and then iframe is only displayed for like a sec. Dont know if they have a time limit or not but really dont care as it either works or it doesnt.

    But anyways, it seems to work. Tested in ie and firefox as those are the only two browsers I have. Thanks again for the help.
     
  8. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    If you're DMR'ing, be wary of leaks. It isn't a perfect method. Make sure you're checking for the blank referer before you send the traffic through to the site.
     
  9. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    Tested using: hxxp://www.junkbusters.com/cgi-bin/privacy and it's hidden.
     
  10. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    You can simple hide the iframe with css. You can show the iframe only to some ip 's too.
     
  11. sm00th

    sm00th Junior Member

    Joined:
    Aug 9, 2009
    Messages:
    166
    Likes Received:
    12
    so say if I wanted to add hits to another site (site a)... and put the 1x1 iframe another site that has plenty traffic(site b)

    the referrer for the siteA will be site b? rite?

    so if i replaced that with something like brad101 script it will show a different referrer correct?