pawluk's page jammer 
Author Message
 pawluk's page jammer

does anyone know how to use pawluk's page jammer?  i am a complete
javascript novice and am having difficulty getting it to work.  apparently
all you have to do is copy/paste the code into source of the
frameset/applicable page then change the pathnames and hey presto, your
pages automatically appear in frames. Unfortunately, I dont seem to be able
to get the correct page displayed within the frameset.  Instead the default
page is displayed.  I'm sure that the pathnames are correct yet it still
doesnt work.  The code is below - if anyone has any ideas i would be hugely
appreciative:

CODE IN CONTENT PAGE (frameset is 'frameset.html', original page is
'how.html' and applicable frameset window is 'Content'.

  </style>
<script>
if (window.name!='Content'
&& !((self.innerHeight == 0) && (self.innerWidth == 0)))
     top.location.replace('frameset.html?how.html~Content');
</script>

</head>

CODE IN FRAMESET
<script>
if (self != top) // anti-hijacking frame buster code
    top.location.replace(self.location);
function frameJammer_hp(){
   var framedPage = location.search;
   if (framedPage.length > 1){
      framedPage = framedPage.substring(1);
      var theSplit = framedPage.lastIndexOf('~');
      var thePage = framedPage.substring(0,theSplit);
      var theFrame = framedPage.substring(theSplit+1);
      eval("top."+ theFrame+".location.replace('"+ thePage+"')");
      }
   }
</script>

</head>

 <frameset rows="80,*,70" framespacing="0" border="0" frameborder="NO">
  <frame src="header.html" name="Header" scrolling="NO" noresize>
  <frame src="welcome.html" name="Content">
  <frame src="footer.html" name="Footer" scrolling="NO">
  <frameset ... onLoad="frameJammer_hp()">
 </frameset>

I know this is asking a lot, but if anyone can help taht would be great.

cheers

steve




Mon, 12 May 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. how do I display a 'page loading...'- image while actual page is loading

2. passing a form field value from a page to a frame's page

3. generating 'page independent' ps

4. Can''t paging - HELP !!!

5. Active Server Pages error 'ASP 0126'

6. Printing 'behind' a page

7. 'Bottom of the page' Links on a browser and resolution independant ASP page

8. can't retrieve a text data type in an ASP page through ADO

9. GetObject() in VBScript on web page doesn't work

10. Capturing a Page's HTML

11. Last Page Won't Print (Sometimes)

12. David's HTML Tip 01 - Home Page and Favorites Anchor

 

 
Powered by phpBB® Forum Software