Help - Search - Members - Calendar
Full Version: Full Page Iframe
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
IamShipon1988
This is a really cool script especially if you want to cloak your domain without using a cloaker script. Your domain will always remain as it is even if you click a link in the page.

For a demo visit: http://rit.edu/~sxh4816

Original site: http://www.sazzadhossain.info

CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Web-site Title Here</title>
<META name="description" content="Put your description here">
<META name="keywords" content="keywords go here, separated by a comma,">
</head>
<frameset rows="100%,*" border="0">
<frame src="http://yourlinkhere.com/location_of_page" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
<!– pageok –>
<!– 01 –>
<!– 5.1–>
</html>


You can use this script and modify it as you wish. I do not care. This one was discovered by me after I attempted to clone the BookMaid website for the fun of it. I saw that many people use those cloaker sites which I really hate and thought this is an awesome alternative.
MrTouz
<iframe width="100%" height="100%" frameborder="0" src="yourpage.html" name="blabl"></iframe>

will do the exact same thing, just set margin-left right op bottom to 0 so it fits the entire page if you want... inside your body ofcourse

but having your domain hidden is really not cool ! at first i thought it was fine but than having everything on an iframe and you can't have direct links to your pages
IamShipon1988
Well one use of this Fullpage iFrame function is that you can load sites on your server without people really knowing its not (very basic users not knowing). I wouldn't suggest anyone doing so, because its basically stealing.

By the way, MrTouz, please code your code. I don't want to be a pain but its helpful for everyone and it helps maintain the site without any code errors due to posted codes.

Thanks
Colin
People can tell its in frame by looking at source or in FF right click anywhere on screen and go to This Frame >> Open in new tab and they know original site...
IamShipon1988
Well it is very true. I think you can also achieve a cloaker effect using php's fopen() function
MrCracker
have you been haxxxorrreed?
IamShipon1988
Haha stupid of me...wrong function
Paranoid
fopen() function
-What does this do?
IamShipon1988
fopen — Opens file or URL
You would use it like so:
CODE
<?php
$handle = fopen("/home/rasmus/file.txt", "r");
?>
MrTouz
so if i put this fopen code inside a page it will just load a page ?

how does it work with an url ?
is that whats used inside many site when we hit an url... like it does http://www.somesite.com/url.php?open... blablalbla ?
IamShipon1988
You can read about it here: http://php.about.com/od/phpfunctions/g/fopen_php.htm
or http://www.php.net/manual/en/function.fopen.php
KiKoLuNa
Thanx for the CSS man, specially for people that is learning CSS, its very clean code and looks awesome.

Nice signature IamShipon =P
IamShipon1988
Thank you very much KiKoLuNa. I'm a bit confused about the CSS, I did not post much (if not any) tutorials on CSS. I may make one soon though.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.