SHARE
TWEET

Parashuram

a guest Apr 12th, 2008 309 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
  3. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5.  
  6. <script language="javascript">
  7. <!--
  8.  
  9. ExitNow = 0;
  10. ToolBarWin="toolbar=no,status=no,menubar=0,scrollbars=no,resizable=0,resizable=no,width=700,height=140";
  11.  
  12. urlopen = "";
  13.  
  14.  
  15. /////////////////////////////////////////////// UNLOAD EVENT
  16.  
  17. function DoUnload()
  18. {
  19.                
  20.        if (stopUnload == 0) {
  21.  
  22.        if (ExitNow == 0)
  23.        {
  24.         oldname=self.name;
  25.        self.name=self.name+"xx";
  26.        win=open("http://12.16.126.98//std/staybridge/toolbar.php", "superclick_toolbar", ToolBarWin);
  27.        if (win) self.close(); else self.name=oldname;
  28.        }
  29.        else
  30.        if ( ExitNow != 2 ) self.close();
  31.  
  32.        }
  33.        }
  34.  
  35. /////////////////////////////////////////////// RELOAD
  36.  
  37. function doreload()
  38. {
  39. ExitNow=2;
  40. location.reload();
  41. }
  42.  
  43. /////////////////////////////////////////////// DISCONNECT
  44.  
  45. function OnDisconnect()
  46. {
  47.        ExitNow=1;
  48.        open("disconnect.php", "close_me" , "toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=1,width="+screen.width+",height="+screen.height);
  49.        self.close();
  50. }
  51.  
  52. ////////////////////////////////////////////// GET WINDOW WIDTH
  53.  
  54. function getClientWidth() {
  55. return document.body && typeof document.body.clientWidth != 'undefined' ?  document.body.clientWidth : window.innerWidth ? innerWidth : null;
  56. }
  57.  
  58. ////////////////////////////////////////////// GET WINDOW HEIGHT
  59.  
  60. function getClientHeight() {
  61. return document.body && typeof document.body.clientHeight != 'undefined' ?  document.body.clientHeight : window.innerHeight ? innerHeight : null;
  62. }
  63.  
  64. ////////////////////////////////////////////// OPEN A PREFERITES URL
  65.  
  66. function pickurl(me)
  67. {
  68. myurl=me.form.url.value;
  69. if ( myurl != "" ) win=open(myurl, "SCFavourites" , "");
  70. }
  71.  
  72. ////////////////////////////////////////////// OPEN A GENERIC URL
  73.  
  74. function openurl()
  75. {
  76.  
  77.        win=open("http://12.16.126.98//std/staybridge/toolbar.php?preview=0", "superclick_toolbar", ToolBarWin);
  78.  
  79.        // if ( ! win ) {
  80.         //     alert("Pop-ups are disabled, the toolbar won't be available");
  81.        // }
  82.  
  83.         ExitNow=2;
  84.  
  85.         document.location="";
  86.  
  87. }
  88.  
  89. function loaded() {
  90.  
  91.  
  92. if ( urlopen != "" || self.name == "" ) {
  93.  
  94.         window.setTimeout("openurl()",500);
  95. } else {
  96.  
  97.           self.name="superclick_toolbar";
  98.          //window.setTimeout("doreload();",60000);
  99. }
  100.  
  101. }
  102.  
  103.  
  104. ////////////////////////////////////////////// OPEN THE PIN CREATION WINDOW
  105.  
  106. function OpenWifi()
  107. {
  108.        nw=open("mywifi.php", "my_wifi" , "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=1,width=326,height=148,screenX="+((screen.width-500)/2)+",screenY="+((screen.height-140)/2));
  109.        if ( ! nw ) { alert("Pop-ups are disabled, the wifi toolbox won't be available"); }
  110. }
  111.  
  112. ////////////////////////////////////////////// OPEN THE REALIP CREATION WINDOW
  113.  
  114. function OpenRealip(release)
  115. {
  116.  
  117.        switch ( release ) {
  118.  
  119.        case 0:
  120.        if (confirm("Do you confirm the request for a Routable IP ?"))
  121.        url="getrealip.php";
  122.  
  123.        nw=window.open(url, "my_realip" , "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=1,width=326,height=148,screenX="+((screen.width-326)/2)+",screenY="+((screen.height-148)/2));
  124.  
  125.        if ( ! nw ) { ExitNow=1; document.location=url; }
  126.  
  127.        break;
  128.  
  129.        case 1:
  130.  
  131.        if (confirm("Do you confirm the request to abandon your Routable IP ?"))
  132.        url="getrealip.php?release=1";
  133.  
  134.        nw=open(url , "my_realip", "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=1,width=326,height=148,screenX="+((screen.width-326)/2)+",screenY="+((screen.height-148)/2));
  135.  
  136.        if ( ! nw ) { ExitNow=1; document.location=url; }
  137.  
  138.        break;
  139.  
  140.        }
  141.  
  142. }
  143.  
  144.  
  145. ////////////////////////////////////////////// OPEN THE HCN WINDOW
  146.  
  147. function OpenCasino(url) {
  148.        nw=open(url, "hcn" , "toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=1,width=640,height=480,screenX="+((screen.width-640)/2)+",screenY="+((screen.height-480)/2));
  149.        if ( ! nw ) { alert("Pop-ups are disabled, the toolbar won't be available"); }
  150. }
  151.  
  152. //-->
  153.  
  154.  
  155. <title>Toolbar</title>
  156. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  157. <link href="toolbar.css" rel="stylesheet" type="text/css">
  158.  
  159.  
  160. <script language="JavaScript" type="text/JavaScript">
  161. <!--
  162. function MM_findObj(n, d) { //v4.01
  163.  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  164.    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  165.  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  166.  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  167.  if(!x && d.getElementById) x=d.getElementById(n); return x;
  168. }
  169.  
  170. function MM_showHideLayers() { //v6.0
  171.  var i,p,v,obj,args=MM_showHideLayers.arguments;
  172.  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
  173.    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
  174.    obj.visibility=v; }
  175. }
  176.  
  177. function MM_preloadImages() { //v3.0
  178.  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  179.    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  180.    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  181. }
  182.  
  183. function MM_swapImage() { //v3.0
  184.  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  185.   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  186. }
  187.  
  188. function MM_swapImgRestore() { //v3.0
  189.  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  190. }
  191. //-->
  192. </head>
  193.  
  194.  
  195. <body style="background-color:#FFFFCC; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;" onLoad="MM_showHideLayers('info','','show','services','','hide','local','','hide'); loaded();MM_preloadImages('images/btn_services.gif','images/btn_local.gif','images/btn_info.gif','images/btn_info_r.gif','images/btn_services_r.gif','images/btn_local_r.gif')" onUnLoad="DoUnload();">
  196.  
  197. <form name="myform1" method="GET" action="toolbar.php"><input type="hidden" name="PHPSESSID" value="ad9b69e2e46978432290a16c965bc200" />
  198. <input name="subRate" type=hidden value="">
  199. </form>
  200.  
  201.  
  202.  
  203.  
  204. <div class="toolbar" id="toolbarlayer">
  205.  
  206. <div class="logo"><a href="http://www.integratir.com/quote_chart.asp?ticker=spck" target="_blank"><img src="images/logo.gif" width="158" height="37" border="0"></a></div>
  207.  
  208.  
  209. <div class="weather" style="z-index:1000">
  210.  
  211. <a href='http://mds.superclick.com/mds/adclick.php?hotelid=1217&amp;bannerid=474&amp;zoneid=75&amp;source=&amp;dest=https%3A%2F%2Fmama.superclick.com%2Fweather%2Fweather1.php%3Fhotelid%3D%24hotelid%26degrees%3DF' target='_blank'><img src='http://mds.superclick.com/mds/adimage.php?filename=weather_2.gif&amp;contenttype=gif' width='110' height='50' alt='' title='' border='0'></a><div id="beacon_474" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src='http://mds.superclick.com/mds/adlog.php?hotelid=1217&amp;bannerid=474&amp;clientid=124&amp;zoneid=75&amp;source=&amp;block=0&amp;capping=0&amp;cb=bd40da5919b84b86cdbea08a195ca0c5' width='0' height='0' alt='' style='width: 0px; height: 0px;'></div><a href='http://mds.superclick.com/mds/adclick.php?hotelid=1217&amp;bannerid=473&amp;zoneid=44&amp;source=&amp;dest=http%3A%2F%2Fmds.superclick.com%2Fmds%2Fairport.php' target='_blank'><img src='http://mds.superclick.com/mds/adimage.php?filename=flight_stats_3.gif&amp;contenttype=gif' width='110' height='50' alt='' title='' border='0'></a><div id="beacon_473" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src='http://mds.superclick.com/mds/adlog.php?hotelid=1217&amp;bannerid=473&amp;clientid=124&amp;zoneid=44&amp;source=&amp;block=0&amp;capping=0&amp;cb=ec574d4706f5b3fd387660ffaeb631cf' width='0' height='0' alt='' style='width: 0px; height: 0px;'></div>
  212. </div>
  213.  
  214.   <div class="main_local" id="local" style="visibility:hidden">
  215.   <br>
  216.   <left>
  217.  <FORM method=GET name=myform action="http://www.google.com/search" target="_blank"><input type="hidden" name="PHPSESSID" value="ad9b69e2e46978432290a16c965bc200" />
  218.   <input type=hidden name=ie value=UTF-8>
  219.   <input type=hidden name=oe value=UTF-8>
  220.  
  221.   <table border="0" cellpadding="0" cellspacing="0" class="main_text" width=300>
  222.   <tr>
  223.   <td width=100%>&nbsp;<select style="background-color:#ffffdd" onchange="openWindow(this.value);" onfocus="clearTimeout(timerID);"><option value="">Internet Favorites</option><option value="http://www.cnn.com">CNN<option value="http://www.ichotelsgroup.com">InterContinental  Hotels Group<option value="http://www.priorityclub.com">InterContinental Priority Club<option value="http://www.superclick.com/weather/weather.php?hotelid=1217&mode=f">Local Weather</select></td></tr></table>  <!-- Google Safe Search -->
  224.   <br>
  225.  
  226.   <TABLE  border="0" cellpadding="0" cellspacing="0"><tr><td width=5%>&nbsp;</td><td width=95% nowrap>
  227.  
  228.   <INPUT TYPE=text style="background-color:#ffffdd" name=q size=21 maxlength=255 value="" onclick="clearTimeout(timerID);">
  229.   <INPUT type=hidden name=safe value=strict>&nbsp;
  230.   <a href="javascript:document.myform.submit();"><img align=middle src="images/google.jpg" border=0></a>
  231.   </td></tr></TABLE>
  232.  
  233.  
  234.   </FORM>
  235.  
  236.   </left>
  237.   <!-- Google SafeSearch -->
  238.  
  239.  
  240.   </div>
  241.  
  242.   <div class="main_services" id="services"  style="z-index:1000">
  243.  
  244.     <table border="0" cellpadding="0" cellspacing="0" class="main_text">
  245.  
  246.        
  247.        
  248.        
  249.        
  250.  
  251.        
  252.        
  253.         </table>
  254.   </div>
  255.  
  256.   <div class="main_info" id="info"  style="z-index:1000">
  257.     <table width="100%" height="72"  border="0" cellpadding="0" cellspacing="0" class="main_text">
  258.  
  259.       <tr>
  260.         <td width="43%">&nbsp;</td>
  261.         <td width="42%">&nbsp;</td>
  262.         <td width="15%">&nbsp;</td>
  263.       </tr>
  264.       <tr>
  265.         <td>Room:</td>
  266.         <td>AP room 229</td>
  267.  
  268.         <td>&nbsp;</td>
  269.       </tr>
  270.       <tr>
  271.         <td>Current IP:</td>
  272.         <td>10.1.241.202</td>
  273.         <td>&nbsp;</td>
  274.       </tr>
  275.         </td>
  276.  
  277.         <td>&nbsp;</td>
  278.  
  279.       </tr>
  280.  
  281.       <tr>
  282.         <td>&nbsp;</td>
  283.       </tr>
  284.  
  285.       <tr>
  286.       <td colspan="2"><div align="center">
  287.  
  288.        
  289.      
  290.        
  291.              
  292.                         [<a href="javascript:OpenWifi(0);">WiFi Access Code</a>]       
  293.         <div id='disconnect'>
  294.         <a href="javascript:OnDisconnect();"><img src="images/disconnect.png" border="0" align="bottom"></a></div>
  295.                
  296.      
  297.  
  298.         </div>
  299.         </td>
  300.  
  301.         <td>&nbsp;</td>
  302.       </tr>
  303.  
  304.     </table>
  305.   </div>
  306.   <div class="info"  style="z-index:1000"><a href="javascript:MM_showHideLayers('info','','show','services','','hide','local','','hide');MM_swapImage('tabinfo','','images/btn_info_r.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local.gif',1)"><img src="images/btn_info_r.gif" alt="" name="tabinfo" width="82" height="22" border="0" id="tabinfo"></a></div>
  307.   <div class="services"  style="z-index:1000"><a href="javascript:MM_showHideLayers('info','','hide','services','','show','local','','hide');MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services_r.gif','tablocal','','images/btn_local.gif',1)"><img src="images/btn_services.gif" alt="" name="tabservices" width="77" height="22" border="0" id="tabservices"></a></div>
  308.   <div class="local"  style="z-index:1000"><a href="javascript:MM_showHideLayers('info','','hide','services','','hide','local','','show');MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local_r.gif',1)"><img src="images/btn_local.gif" alt="" name="tablocal" width="77" height="22" border="0" id="tablocal"></a></div>
  309.  
  310.  
  311. <div id=banner1 class="banner1" style="z-index:1000"></div>
  312. <div id=banner2 class="banner2" style="z-index:1000"></div>
  313.  
  314.  
  315.   <div class="spacer01"> <img src="images/spacer01.gif" width="4" height="139" alt=""> </div>
  316.   <div class="spacer02"> <img src="images/spacer02.gif" width="551" height="8" alt=""> </div>
  317.   <div class="spacer03"> <img src="images/spacer03.gif" width="77" height="22" alt=""> </div>
  318.   <div class="spacer04"> <img src="images/spacer04.gif" width="4" height="131" alt=""> </div>
  319.   <div class="spacer05"> <img src="images/spacer05.gif" width="11" height="109" alt=""> </div>
  320.  
  321.   <div class="spacer06"> <img src="images/spacer06.gif" width="8" height="102" alt=""> </div>
  322.   <div class="spacer07"> <img src="images/spacer07.gif" width="234" height="10" alt=""> </div>
  323.   <div class="spacer08"> <img src="images/spacer08.gif" width="713" height="7" alt=""> </div>
  324.  
  325. </div>
  326. <script language="javascript">
  327. sc_connection_type = "wifi";
  328.  
  329. var closeWindow = 0;
  330.  
  331.  
  332. var expireTime = 0;
  333. var now = 1208025600;
  334. var tb_refresh = 2700;
  335.  
  336. var timeLeft = expireTime - now;
  337.  
  338. var hours =0;
  339. var mins = 0;
  340. var secs = 0;
  341. var alreadySet =0;
  342. item1  = document.getElementById("timer1");
  343. item4= document.getElementById("disconnect");
  344. //item4Bak = item4.innerHTML;
  345. var stopUnload = 0;
  346.  
  347. function reSubscribe(){
  348. item5 = document.getElementById("rate1");
  349. document.myform1.subRate.value= item5.value;
  350. stopUnload = 1;
  351. document.myform1.submit();
  352. }
  353.  
  354. function timeLeft1(){
  355. //document.write(item1.innerHTML + "1");
  356.      hours = Math.floor(timeLeft / 3600);
  357.      mins = Math.floor((timeLeft%3600) / 60 );
  358.      secs = (timeLeft%3600) % 60;
  359.  
  360.      if (timeLeft % tb_refresh == 0){
  361.          self.name=self.name+"xx";
  362.          win=open("http://12.16.126.98//std/staybridge/toolbar.php", "superclick_toolbar", ToolBarWin);
  363.          if (win)
  364.              self.close();
  365.      }
  366.  
  367.      if (timeLeft < 0){
  368.         item1.innerHTML= "<font color=red>Waiting for New Subscription to Start</font>";
  369.          window.setTimeout("DoUnload()",9000);
  370.          item2 = document.getElementById("disconnect");
  371.          item2.style.visibility='hidden';
  372.      }   else item1.innerHTML =  hours + "h "+ mins + "m " + secs + "s";
  373.      
  374.      timeLeft--;
  375.  
  376.      if (closeWindow == 0){
  377.      if (sc_connection_type == "guestroom"){
  378.          if (timeLeft <= 600){
  379.             if (alreadySet ==0)
  380.                              alreadySet++;
  381.         }  
  382.  
  383.     }
  384.     }
  385.  
  386.     if(timeLeft <= 30){
  387.        count = 0;
  388.        if (timeLeft == 30){
  389.            window.focus();
  390.            }
  391.     }
  392.  
  393.  
  394.     if(timeLeft ==0){
  395.        hours = 0;
  396.        mins = 0;
  397.        secs = 0;
  398.        if (closeWindow == 1){
  399.            setTimeout("timeLeft1()", 1000);
  400.            document.myform1.subRate.value = "";
  401.        }else  timeExpired();
  402.     }  else timerID1  = setTimeout("timeLeft1()", 1000);
  403. }
  404.  
  405. timerID1  = setTimeout("timeLeft1()", 1000);
  406.  
  407.  
  408. // End of Real time counter
  409.  
  410. function timeExpired(){
  411.  item2 = document.getElementById("disconnect");
  412.  item2.style.visibility='hidden';
  413.  clearTimeout(timerID1);
  414.  item1.innerHTML = "<font color=red>Connection Expired -- Reconnect!</font>";
  415. //  stop_refresh();
  416.   wint = (screen.width - 800)/2;
  417.   winl = (screen.height - 600)/2;
  418.   newWindow = window.open('/superclick/index.php?id=14','Disclaimer_Page','height=480,width=840,top='+wint+',left='+winl+',scrollbars=no');
  419.   if (window.focus) {newWindow.focus();}
  420. }
  421.  
  422. var count = 0;
  423. // Start of Rotating Tabs
  424.  
  425. function rotateTabs(){
  426. if (count ==0){
  427. MM_showHideLayers('info','','show','services','','hide','local','','hide');
  428. MM_swapImage('tabinfo','','images/btn_info_r.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local.gif',1);
  429. }
  430. if(count == 1){
  431. MM_showHideLayers('info','','hide','services','','show','local','','hide');
  432. MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services_r.gif','tablocal','','images/btn_local.gif',1);
  433. }
  434. if (count == 2){
  435. MM_showHideLayers('info','','hide','services','','hide','local','','show');
  436. MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local_r.gif',1);
  437. }
  438. count++;
  439. if (count > 2)
  440.     count = 0;
  441.  
  442. timerID  = setTimeout("rotateTabs()", 10000);
  443. }
  444. timerID  = setTimeout("rotateTabs()", 10000);
  445.  
  446.  
  447. function openWindow(url){
  448.          newWindow1 = window.open(url,'','left=0,top=0,width='+screen.width+',height='+screen.height+',toolbar=1,resizable=1,menubar=1,scrollbars=yes');
  449. }
  450.  
  451. //End of Rotating Tabs
  452.  
  453.  
  454. </body>
  455. </html>
RAW Paste Data
Want to get better at HTML?
Learn to code HTML in 2017
Top