Guest User

Untitled

a guest
Sep 22nd, 2021
57
54 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.         <title>
  7.             The web site of qalaxydoq
  8.         </title>
  9.         <link href="/style.css" rel="stylesheet" type="text/css" media="all">
  10.         <script>
  11.         //I legit copy & pasted this from melonking.net since I needed this fix! Please check out their website, its really epic!
  12.  
  13.         //Melo-tech Frame Link Management System 1.0
  14.  
  15.         //+++ Functions +++
  16.         //Generic Parameter Function
  17.         function getParameterByName(name, url)
  18.         {
  19.         if (!url)
  20.         {
  21.          url = window.location.href;
  22.         }
  23.         name = name.replace(/[\[\]]/g, "\\$&");
  24.         var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url);
  25.         if (!results) return null;
  26.         if (!results[2]) return null;
  27.         return decodeURIComponent(results[2].replace(/\+/g, " "));
  28.         }
  29.  
  30.         //Event to handle back button presses
  31.         window.addEventListener('popstate', function (e) {
  32.         if (e.state !== null) { setMainFrame(); }
  33.         });
  34.  
  35.         //Checks to see if a page parameter exists and sets the mainframe src to that page.
  36.         function setMainFrame()
  37.         {
  38.         var mainframe = document.getElementById('mainframe');
  39.         var page = getParameterByName( 'z' );
  40.  
  41.         if( page != null )
  42.         {
  43.         mainframe.src = page;
  44.         }
  45.         }
  46.  
  47.         //Updates the browser history with the current page, causing the URL bar to update.
  48.         function updateHistory()
  49.         {
  50.         //For computers who did not set the frame before the first update.
  51.         if( firstLoad == true )
  52.         {
  53.         firstLoad = false;
  54.         return;
  55.         }
  56.  
  57.         var page = window.frames[1].location.pathname;
  58.         history.pushState('', '', '?z='+page );
  59.  
  60.         //Update title
  61.         document.title = window.frames[1].document.title;
  62.         }
  63.  
  64.         //+++ Variables +++
  65.         var firstLoad = true;
  66.  
  67.         </script>
  68.     </head>
  69.     <frameset cols="150,*" onload="setMainFrame()" frameborder="0">
  70.         <frame name="nav" src="nav.html" noresize>
  71.         <frame id="mainframe" name="main" src="home.html" onload="updateHistory()">
  72.     </frameset>
  73. </html>
RAW Paste Data