View difference between Paste ID: kf9dJFJj and
SHOW: | | - or go back to the newest paste.
1-
1+
<html>
2
<head>
3
	<meta content="charset=UTF-8">
4
	<title>TwoBrowse</title>
5
<!--
6
		CREDITS
7
	Original idea..........................Caleb Stein  (http://hackmyphone.wordpress.com)
8
	Implimentation.........................Locutus      (http://cogizio.org)
9
	With some code from....................Lior Cohen   (http://tinyurl.com/26uclpy)
10
	Home page features.....................lol768       (No website given)
11
-->
12
<link href='http://fonts.googleapis.com/css?family=Droid+Sans&subset=latin' rel='stylesheet' type='text/css'>
13
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
14
<script type="text/javascript" src="https://github.com/carhartl/jquery-cookie/raw/master/jquery.cookie.js"></script>
15
<script type="text/javascript">
16
	function back()
17
	{
18
	history.go(-1);
19
	}
20
	function forward()
21
	{
22
	history.go(+1);
23
	}
24
	function sethomeone()
25
	{
26
	if (document.getElementById('froneurl').value == "http://")
27
	{
28
	alert ('Enter url in textbox');
29
	}
30
	else
31
	{
32
	var Cururl = document.getElementById('froneurl').value;
33
	$.cookie("frameone", Cururl, { expires: 999 });
34
	alert ('Set homepage to ' + Cururl);
35
	}
36
		
37
	}
38
	function gethomeone()
39
	{
40
41
		document.getElementById('dynFrame_1').src=$.cookie("frameone");
42
	}
43
	function sethometwo()
44
	{
45
	if (document.getElementById('frtwourl').value == "http://")
46
	{
47
	alert ('Enter url in textbox');
48
	}
49
	else
50
	{
51
	var Cururl = document.getElementById('frtwourl').value;
52
	$.cookie("frametwo", Cururl, { expires: 999 });
53
	alert ('Set homepage to ' + Cururl);
54
	}
55
		
56
	}
57
	function gethometwo()
58
	{
59
		document.getElementById('dynFrame_2').src=$.cookie("frametwo");
60
	}
61
	function starthomes()
62
	{
63
		if ($.cookie("frameone") != "http://" && $.cookie("frameone") != null)
64
		{
65
			
66
			document.getElementById('dynFrame_1').src=$.cookie("frameone");
67
		}
68
		if ($.cookie("frametwo") != "http://" && $.cookie("frametwo") != null)
69
		{
70
			document.getElementById('dynFrame_2').src=$.cookie("frametwo");
71
		}
72
	}
73
</script>
74
<script type="text/javascript">
75
        $(function()
76
        {
77
        $('.frmSubmit').click(function(e)
78
        {
79
        $('#dynFrame_1').attr('src', $('.frmUrlVal').attr('value'));
80
        e.preventDefault();
81
        });
82
        });	
83
</script>
84
85
<script type="text/javascript">
86
        $(function()
87
        {
88
        $('.frmSubmit_2').click(function(e)
89
        {
90
        $('#dynFrame_2').attr('src', $('.frmUrlVal_2').attr('value'));
91
        e.preventDefault();
92
        });
93
        });
94
</script>
95
<style type="text/css">
96
	a:link {
97
	COLOR: #FFFFFF;
98
	}
99
	a:visited {
100
	COLOR: #FFFFFF;
101
	}
102
	a:hover {
103
	COLOR: #FFFFFF;
104
	}
105
	a:active {
106
	COLOR: #FFFFFF;
107
	}
108
	body
109
	{
110
	background-color: #627aad;
111
	}
112
	table
113
	{
114
	border-top-width: 0px;
115
	}
116
	body
117
	{
118
	font-family: 'Droid Sans', arial, sans-serif;
119
	}
120
	table 
121
	{
122
	font-size: 14px;
123
	}
124
</style>
125
<script type="text/javascript">
126
  var _gaq = _gaq || [];
127
  _gaq.push(['_setAccount', 'UA-18026888-4']);
128
  _gaq.push(['_trackPageview']);
129
  (function() {
130
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
131
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
132
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
133
  })();
134
</script>
135
</head>
136
<body onload = "starthomes()">
137
138
<table height="100%" style="position: relative; top:-15px;">
139
	<tr>
140
		<td height="100%">
141
			<button onclick="back()" target="main">&#8592;</button>
142
143
			<button onclick="forward()" target="main">&#8594;</button>
144
145
			<form style="display:inline">
146
				<input style="display:inline; width:350px" type="text" class="frmUrlVal" value="http://" id = "froneurl" name = "froneurl">
147
				<input style="display:inline" type="submit" class="frmSubmit" value="Go">
148
			</form>
149
			<a href = "#" onclick ="sethomeone()">Set As Home</a> | <a href = "#" onclick = "gethomeone()">Visit Home</a>
150
151
			<iframe name="main" src="http://www.google.com" id="dynFrame_1" frameborder="0" width="100%" height="92%" border="0"></iframe>
152
153
		</td>
154
		<td height="100%">
155
			<button onclick="back()" target="tab">&#8592;</button>
156
			<button onclick="forward()" target="tab">&#8594;</button>
157
			<form style="display:inline">
158
				<input style="display:inline; width:350px" type="text" class="frmUrlVal_2" id = "frtwourl" name = "frtwourl" value="http://">
159
				<input style="display:inline" type="submit" class="frmSubmit_2" value="Go">
160
161
			</form>
162
			<a href = "#" onclick ="sethometwo()">Set As Home</a> | <a href = "#" onclick = "gethometwo()">Visit Home</a>
163
164
			<iframe name="tab" src="http://www.google.com" id="dynFrame_2" frameborder="0" width="100%" height="92%" border="0"></iframe>
165
		</td>
166
	</tr>
167
</table>
168
169
</body>
170
</html>