Y T Nuke  
Results 1 to 5 of 5
Ok, I'm no expert, but I have been trying to Iframe a full website and ...
  1. #1
    bigg_capp's Avatar
    bigg_capp is offline Jr. VIP
    Join Date
    Aug 2010
    Location
    On My Grind
    Posts
    357
    Reputation
    140
    Thanks
    152
    Thanked 279 Times in 117 Posts

    Default Code Help...Iframe. I'm Close...

    Ok, I'm no expert, but I have been trying to Iframe a full website and it's driving me crazy.

    I used this code, I put this in my header:

    Code:
    <iframe id="MyIFRAME" name="MyIFRAME"      src="http://www.yahoo.com"     scrolling="auto" width="100%" frameborder="0">     no iframes supported... </iframe>
    And put this code in my Page html portion

    Code:
    <!-- ... -->
    <body>
    <script type="text/javascript">
        function resizeIframe() {
    
            var docHeight;
            if (typeof document.height != 'undefined') {
                docHeight = document.height;
            }
            else if (document.compatMode && document.compatMode != 'BackCompat') {
                docHeight = document.documentElement.scrollHeight;
            }
            else if (document.body 
                && typeof document.body.scrollHeight != 'undefined') {
                docHeight = document.body.scrollHeight;
            }
    
            // magic number: suppress generation of scrollbars...
            docHeight += 20;
    
            parent.document.getElementById('MyIFRAME').style.height = docHeight + "px";    
        }
        parent.document.getElementById('MyIFRAME').onload = resizeIframe;
        parent.window.onresize = resizeIframe;
    </script>               
    </body>
    Here is the result I got: http://freeformula.justmho.com/?page_id=179
    Really close but no cigar. I can't get the height to auto resize.

    Any help with this? I also tried to use the code in this thread but couldn't get it to work either.

    If anyone can help a brotha out that would be great.

    -Capp

  2. #2
    diceinc's Avatar
    diceinc is offline Regular Member
    Join Date
    May 2009
    Posts
    273
    Reputation
    15
    Thanks
    231
    Thanked 22 Times in 20 Posts

    Default Re: Code Help...Iframe. I'm Close...

    you want to iframe the whole yahoo page?

  3. #3
    artizhay's Avatar
    artizhay is offline Senior Member
    Join Date
    Nov 2010
    Location
    Houston, TX
    Age
    19
    Posts
    901
    Reputation
    163
    Thanks
    165
    Thanked 584 Times in 310 Posts

    Default Re: Code Help...Iframe. I'm Close...

    Do this instead:
    HTML Code:
    <html>
    <head>
    	<title>Full page frame</title>
    	<style type="text/css">
    	html, body{
    		margin:0;
    		padding:0;
    		overflow:auto;
    	}
    	</style>
    </head>
    <frameset rows="100%, *" border="0" framespacing="0" frameborder="0">
    	<frame noresize="" src="http://www.yahoo.com/"></frame>
    </frameset>
    </html>
    Good at talking to people? Sell my services for easy monthly commission. PM or IM me.

  4. The Following 5 Users Say Thank You to artizhay For This Useful Post:

    bigg_capp (12-31-2011), GreenGoblin (01-01-2012), healzer (01-01-2012), transam7410 (01-01-2012), TZ2011 (01-01-2012)

  5. #4
    bigg_capp's Avatar
    bigg_capp is offline Jr. VIP
    Join Date
    Aug 2010
    Location
    On My Grind
    Posts
    357
    Reputation
    140
    Thanks
    152
    Thanked 279 Times in 117 Posts

    Default Re: Code Help...Iframe. I'm Close...

    YESSS!!

    Thanks artizhay! That shit worked like a f*ckin' charm!! OMG!
    Rep and thanks giving. Now I can go out with my girlfriend without being pissed off. lol. ......but of course, now I don't want to go because I have work to do with my iframe!!

    Thanks Again and Happy New Year!!
    -Capp

  6. The Following User Says Thank You to bigg_capp For This Useful Post:

    artizhay (01-01-2012)

  7. #5
    artizhay's Avatar
    artizhay is offline Senior Member
    Join Date
    Nov 2010
    Location
    Houston, TX
    Age
    19
    Posts
    901
    Reputation
    163
    Thanks
    165
    Thanked 584 Times in 310 Posts

    Default Re: Code Help...Iframe. I'm Close...

    Quote Originally Posted by bigg_capp View Post
    YESSS!!

    Thanks artizhay! That shit worked like a f*ckin' charm!! OMG!
    Rep and thanks giving. Now I can go out with my girlfriend without being pissed off. lol. ......but of course, now I don't want to go because I have work to do with my iframe!!

    Thanks Again and Happy New Year!!
    -Capp
    You're welcome. Have a good night and a happy new year!
    Good at talking to people? Sell my services for easy monthly commission. PM or IM me.

AdStract


Advertise on Black Hat World

Similar Threads

  1. FaceBook Likes/Invite all Iframe Code
    By bishop05 in forum FaceBook
    Replies: 7
    Last Post: 06-02-2011, 07:44 PM
  2. 3 step iframe code
    By martinmsj in forum FaceBook
    Replies: 2
    Last Post: 04-25-2011, 01:19 AM
  3. Facebook Iframe Reveal Code
    By nfsundercover22 in forum Black Hat SEO
    Replies: 3
    Last Post: 04-21-2011, 09:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76