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

Centering Cakeslice Code

Discussion in 'Black Hat SEO Tools' started by alitomari, Aug 8, 2009.

  1. alitomari

    alitomari Registered Member

    Joined:
    Apr 17, 2008
    Messages:
    58
    Likes Received:
    2
    Hey I started using Cakeslice today. It's framing it how I want it but when I paste the html code into my index.html file, when viewed in the browser the iframe is aligned to the left side of the screen. I'd like to center it, but I've tried:

    <center>
    <div style="overflow: hidden; width: 100%; height: 100%; position: relative;" id="i_div">
    <iframe name="i_frame" src="hxxp://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -690px; top: -319px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div>
    </center>

    <div style="text-align:center;"><div style="overflow: hidden; width: 100%; height: 100%; position: relative;" id="i_div">
    <iframe name="i_frame" src="hxxp://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -690px; top: -319px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div></dive>

    Neither one is working. Any help on changing the iframe's position would be greatly appreciated and would earn you mad thanks!
     
  2. Xyon81

    Xyon81 Regular Member

    Joined:
    May 27, 2009
    Messages:
    225
    Likes Received:
    18
    <div id="centering" style="margin-left: auto; margin-right:">
    <div style="overflow: hidden; width: 100%; height: 100%; position: relative;" id="i_div">
    <iframe name="i_frame" src="hxxp://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -690px; top: -319px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div>
    </div>
    just set the div width and height to whatever the iframe is
     
  3. Xyon81

    Xyon81 Regular Member

    Joined:
    May 27, 2009
    Messages:
    225
    Likes Received:
    18
    broked my own post, stupid internet,
    you get the idea though
     
  4. Paper-Boy

    Paper-Boy Elite Member

    Joined:
    Jun 17, 2009
    Messages:
    5,116
    Likes Received:
    1,821
    but aren't you scared that it'll leak your referrers?

    it's known to do that.

    unless youre just testing how it works..
     
  5. alitomari

    alitomari Registered Member

    Joined:
    Apr 17, 2008
    Messages:
    58
    Likes Received:
    2
    Hey I tried your code and played around with it but what happens is if I do something like:

    <div id="centering" style="margin-left: 50%; margin-right: auto;">

    Then the beginning of the iframe (the left side) starts at the horizontal 50% position, instead of centering the iframe, so its still off center. I'm still searching for an answer to this I can't figure it out. Here is the code as it is now:


    <div id="centering" style="margin-left: 50%; margin-right: auto;">
    <div style="overflow: hidden; width: 390px; height: 157px; position: relative;" id="i_div">
    <iframe name="i_frame" src="http://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -8px; top: -215px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div></div>
     
    Last edited: Aug 8, 2009
  6. alitomari

    alitomari Registered Member

    Joined:
    Apr 17, 2008
    Messages:
    58
    Likes Received:
    2
    I'm testing it right now, I'm doing a DMR so what happens is I slice the offer in cakeslice, then replace the cakeslice offer url with my link that DMRs to the offer. When I tested that with the hxxp://www.junkbusters.com/cgi-bin/privacy its showing a blank referrer which is what I want. Correct me if I'm wrong but I think that should solve the referrer leaking?

    Another question I had was is there any way to leak the page where the offer is being iframed? For instance, if I'm iframing an offer on abc.com/offer, is there any way for the abc.com/offer page to leak to the affiliate network? Because that would be really bad.
     
  7. alitomari

    alitomari Registered Member

    Joined:
    Apr 17, 2008
    Messages:
    58
    Likes Received:
    2
    OK I finally figured it out here is the code if you're interested:


    <div style="overflow: hidden; width: 390px; height: 157px; position: relative; margin:0 auto;" id="i_div">
    <iframe name="i_frame" src="http://www.junkbusters.com/cgi-bin/privacy" style="border: 0pt none ; left: -8px; top: -215px; position: absolute; width: 1280px; height: 606px;" scrolling="no"></iframe></div></div>
     
  8. hashir

    hashir Junior Member

    Joined:
    Jul 8, 2008
    Messages:
    100
    Likes Received:
    49
    mate just put the code in a new layer
    and move the layer around to where ever u want
    hope that helped :p