Created
February 27, 2014 09:09
-
-
Save fmtarif/9246768 to your computer and use it in GitHub Desktop.
file should go in htdocs/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style> | |
iframe { position: fixed; border: none; height: 100%; top: 0; } | |
</style> | |
<!--<script src="jquery.js"></script>--> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(window).load(function(){ | |
$('#nav').contents().find('a').each(function(i,e){ | |
$(e).attr('target', 'content'); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<iframe id="nav" style="left:0px;width:20%;" src="http://localhost"></iframe> | |
<iframe name="content" style="right:0;margin-left:20%;width:80%;"></iframe> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment