<html>
<head>
<meta content="charset=UTF-8">
<title>TwoBrowse</title>
<!--
CREDITS
Original idea..........................Caleb Stein (http://hackmyphone.wordpress.com)
Implimentation.........................Locutus (http://cogizio.org)
With some code from....................Lior Cohen (http://tinyurl.com/26uclpy)
Home page features.....................lol768 (No website given)
-->
<link href='http://fonts.googleapis.com/css?family=Droid+Sans&subset=latin' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="https://github.com/carhartl/jquery-cookie/raw/master/jquery.cookie.js"></script>
<script type="text/javascript">
function back()
{
history.go(-1);
}
function forward()
{
history.go(+1);
}
function sethomeone()
{
if (document.getElementById('froneurl').value == "http://")
{
alert ('Enter url in textbox');
}
else
{
var Cururl = document.getElementById('froneurl').value;
$.cookie("frameone", Cururl, { expires: 999 });
alert ('Set homepage to ' + Cururl);
}
}
function gethomeone()
{
document.getElementById('dynFrame_1').src=$.cookie("frameone");
}
function sethometwo()
{
if (document.getElementById('frtwourl').value == "http://")
{
alert ('Enter url in textbox');
}
else
{
var Cururl = document.getElementById('frtwourl').value;
$.cookie("frametwo", Cururl, { expires: 999 });
alert ('Set homepage to ' + Cururl);
}
}
function gethometwo()
{
document.getElementById('dynFrame_2').src=$.cookie("frametwo");
}
function starthomes()
{
if ($.cookie("frameone") != "http://" && $.cookie("frameone") != null)
{
document.getElementById('dynFrame_1').src=$.cookie("frameone");
}
if ($.cookie("frametwo") != "http://" && $.cookie("frametwo") != null)
{
document.getElementById('dynFrame_2').src=$.cookie("frametwo");
}
}
</script>
<script type="text/javascript">
$(function()
{
$('.frmSubmit').click(function(e)
{
$('#dynFrame_1').attr('src', $('.frmUrlVal').attr('value'));
e.preventDefault();
});
});
</script>
<script type="text/javascript">
$(function()
{
$('.frmSubmit_2').click(function(e)
{
$('#dynFrame_2').attr('src', $('.frmUrlVal_2').attr('value'));
e.preventDefault();
});
});
</script>
<style type="text/css">
a:link {
COLOR: #FFFFFF;
}
a:visited {
COLOR: #FFFFFF;
}
a:hover {
COLOR: #FFFFFF;
}
a:active {
COLOR: #FFFFFF;
}
body
{
background-color: #627aad;
}
table
{
border-top-width: 0px;
}
body
{
font-family: 'Droid Sans', arial, sans-serif;
}
table
{
font-size: 14px;
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18026888-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body onload = "starthomes()">
<table height="100%" style="position: relative; top:-15px;">
<tr>
<td height="100%">
<button onclick="back()" target="main">←</button>
<button onclick="forward()" target="main">→</button>
<form style="display:inline">
<input style="display:inline; width:350px" type="text" class="frmUrlVal" value="http://" id = "froneurl" name = "froneurl">
<input style="display:inline" type="submit" class="frmSubmit" value="Go">
</form>
<a href = "#" onclick ="sethomeone()">Set As Home</a> | <a href = "#" onclick = "gethomeone()">Visit Home</a>
<iframe name="main" src="http://www.google.com" id="dynFrame_1" frameborder="0" width="100%" height="92%" border="0"></iframe>
</td>
<td height="100%">
<button onclick="back()" target="tab">←</button>
<button onclick="forward()" target="tab">→</button>
<form style="display:inline">
<input style="display:inline; width:350px" type="text" class="frmUrlVal_2" id = "frtwourl" name = "frtwourl" value="http://">
<input style="display:inline" type="submit" class="frmSubmit_2" value="Go">
</form>
<a href = "#" onclick ="sethometwo()">Set As Home</a> | <a href = "#" onclick = "gethometwo()">Visit Home</a>
<iframe name="tab" src="http://www.google.com" id="dynFrame_2" frameborder="0" width="100%" height="92%" border="0"></iframe>
</td>
</tr>
</table>
</body>
</html>