Ok, I'm no expert, but I have been trying to Iframe a full website and ...
-
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
-
-
-
Re: Code Help...Iframe. I'm Close...
you want to iframe the whole yahoo page?
-
-
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.
-
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)
-
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
-
The Following User Says Thank You to bigg_capp For This Useful Post:
-
Re: Code Help...Iframe. I'm Close...

Originally Posted by
bigg_capp
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.
-
Similar Threads
-
By bishop05 in forum FaceBook
Replies: 7
Last Post: 06-02-2011, 07:44 PM
-
By martinmsj in forum FaceBook
Replies: 2
Last Post: 04-25-2011, 01:19 AM
-
By nfsundercover22 in forum Black Hat SEO
Replies: 3
Last Post: 04-21-2011, 09:02 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks