Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

TwoBrowse Homepage

By: a guest on Nov 29th, 2010  |  syntax: HTML  |  size: 4.62 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <html>
  2. <head>
  3.         <meta content="charset=UTF-8">
  4.         <title>TwoBrowse</title>
  5. <!--Idea by Caleb Stein-->
  6. <!--Original code by Lior Cohen at http://tinyurl.com/26uclpy-->
  7. <!--code modified by Locutus-->
  8. <!--Homepage code is provided under 4 functions. Feel free to do what you want with it. No attribution required, but if you want to my username is lol768-->
  9. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  10. <script type="text/javascript" src="https://github.com/carhartl/jquery-cookie/raw/master/jquery.cookie.js"></script>
  11.  
  12. <script type="text/javascript">
  13.         function back()
  14.         {
  15.         history.go(-1);
  16.         }
  17.         function forward()
  18.         {
  19.         history.go(+1);
  20.         }
  21.         function sethomeone()
  22.         {
  23.         var Cururl = document.getElementById('froneurl').value;
  24.         $.cookie("frameone", Cururl, { expires: 999 });
  25.         alert ('Set homepage to ' + Cururl);
  26.                
  27.         }
  28.         function gethomeone()
  29.         {
  30.                 document.getElementById('dynFrame_1').src=$.cookie("frameone");
  31.         }
  32.         function sethometwo()
  33.         {
  34.         var Cururl = document.getElementById('frtwourl').value;
  35.         $.cookie("frametwo", Cururl, { expires: 999 });
  36.         alert ('Set homepage to ' + Cururl);
  37.                
  38.         }
  39.         function gethometwo()
  40.         {
  41.                 document.getElementById('dynFrame_2').src=$.cookie("frametwo");
  42.         }
  43.         function starthomes()
  44.         {
  45.                 if ($.cookie("frameone") != "")
  46.                 {
  47.                         document.getElementById('dynFrame_1').src=$.cookie("frameone");
  48.                 }
  49.                 if ($.cookie("frametwo") != "")
  50.                 {
  51.                         document.getElementById('dynFrame_2').src=$.cookie("frametwo");
  52.                 }
  53.         }
  54. </script>
  55.  
  56. <script type="text/javascript">
  57.         $(function()
  58.         {
  59.         $('.frmSubmit').click(function(e)
  60.         {
  61.         $('#dynFrame_1').attr('src', $('.frmUrlVal').attr('value'));
  62.         e.preventDefault();
  63.         });
  64.         });
  65.  
  66.        
  67. </script>
  68. <script type="text/javascript">
  69.         $(function()
  70.         {
  71.         $('.frmSubmit_2').click(function(e)
  72.         {
  73.         $('#dynFrame_2').attr('src', $('.frmUrlVal_2').attr('value'));
  74.         e.preventDefault();
  75.         });
  76.         });
  77.  
  78. </script>
  79. <style type="text/css">
  80.         a:link {
  81.         COLOR: #FFFFFF;
  82.         }
  83.         a:visited {
  84.         COLOR: #FFFFFF;
  85.         }
  86.         a:hover {
  87.         COLOR: #FFFFFF;
  88.         }
  89.         a:active {
  90.         COLOR: #FFFFFF;
  91.         }
  92.         body
  93.         {
  94.                 background-color: #627aad;
  95.         }
  96. </style>
  97. <script type="text/javascript">
  98.  
  99.   var _gaq = _gaq || [];
  100.   _gaq.push(['_setAccount', 'UA-18026888-4']);
  101.   _gaq.push(['_trackPageview']);
  102.  
  103.   (function() {
  104.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  105.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  106.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  107.   })();
  108.  
  109. </script>
  110. </head>
  111. <body onload = "starthomes()">
  112. <table height="100%">
  113. <tr>
  114. <td height="100%">
  115.         <button onclick="back()" target="main">&#8592;</button>
  116. <form style="display:inline;" method="link" action="http://twobrowse.cogizio.org/main.html" target="main" name = "frm1" id = "frm1">
  117.         <input type="submit" value="⌂">
  118. </form>
  119.         <button onclick="forward()" target="main">&#8594;</button>
  120.  
  121.         <a href="http://google.com/" target="main">Google</a> | <a href="http://bing.com/" target="main">Bing</a> | <a href = "#" onclick = "sethomeone()">Set homepage</a> | <a href = "#" onclick = "gethomeone()">Visit homepage</a>
  122. <form style="display:inline">
  123.         <input style="display:inline; width:350px" type="text" class="frmUrlVal" value="http://" id = "froneurl" name = "froneurl">
  124.         <input style="display:inline" type="submit" class="frmSubmit" value="Go">
  125. </form>
  126. <iframe name="main" src="http://twobrowse.cogizio.org/main.html" id="dynFrame_1" frameborder="0" width="100%" height="92%" border="0"></iframe>
  127. </td>
  128. <td height="100%">
  129.         <button onclick="back()" target="tab">&#8592;</button>
  130.  
  131. <form style="display:inline;" method="link" action="http://twobrowse.cogizio.org/main.html" target="tab">
  132.         <input type="submit" value="⌂">
  133. </form>
  134.         <button onclick="forward()" target="tab">&#8594;</button>
  135.         <a href="http://google.com/" target="tab">Google</a> | <a href="http://bing.com/" target="tab">Bing</a> | <a href = "#" onclick = "sethometwo()">Set homepage</a> | <a href = "#" onclick = "gethometwo()">Visit homepage</a>
  136. <form style="display:inline">
  137.         <input style="display:inline; width:350px" type="text" class="frmUrlVal_2" id = "frtwourl" name = "frtwourl" value="http://">
  138.         <input style="display:inline" type="submit" class="frmSubmit_2" value="Go">
  139.  
  140. </form>
  141. <iframe name="tab" src="http://twobrowse.cogizio.org/main.html" id="dynFrame_2" frameborder="0" width="100%" height="92%" border="0"></iframe>
  142. </tr>
  143. </table>
  144. </body>
  145. </html>
clone this paste RAW Paste Data