JAVASCRIPT   71

framejam.js

Guest on 28th July 2021 01:08:22 AM

  1. // JavaScript Document
  2. // frameJammer_hp v3.2.2 framestuffer
  3. if (self != top)     // frame buster, may be removed
  4.         top.location.replace(self.location);
  5.  
  6. var theDefault = 'index.php';
  7. var theFrame = 'info';
  8. var thePage = theDefault;
  9. var framedPage = location.search;
  10. if (framedPage.length > 1 && framedPage.indexOf("://") == -1){
  11.         framedPage = framedPage.substring(1);
  12.         var theSplit = framedPage.lastIndexOf('~');
  13.         if (theSplit != -1){
  14.                 thePage = framedPage.substring(0,theSplit);
  15.                 theFrame = framedPage.substring(theSplit+1);
  16.         }else
  17.                 thePage = framedPage;
  18.         // insert anchor code here if required (see Help)
  19.         }
  20.  
  21. function frameStuffer(){
  22.         eval('top.'+theFrame+'.location.replace("'+ thePage +'");');
  23.         if (theFrame != 'main_orl'){
  24.                 top.main_pz.location.replace(theDefault);
  25.                 theFrame = 'main_orl';
  26.                 }
  27.         }
  28. // frameJammer_hp End

Raw Paste


Login or Register to edit or fork this paste. It's free.