Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script 4.5 listing:
<HTML> <HEAD> <TITLE>Site Frameset</TITLE> </HEAD> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers linkURL = "frame3a.html" if (parent.document.URL) { callingURL = parent.document.URL if (callingURL.indexOf('?') != -1) { linkURL = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length) } } document.writeln('<FRAMESET COLS="30%,70%">') document.writeln('<FRAME SRC="left3.html" NAME="left">') document.writeln('<FRAME SRC="' + linkURL + '" NAME="content">') document.writeln('<\/FRAMESET>') // End hiding script from old browsers --> </SCRIPT> </HTML>
Script 4.6 listing:
<HTML> <HEAD> <TITLE>Nav Bar</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <H1>Important info you should always see</H1> </BODY> </HTML>
Script 4.7 listing:
<HTML> <HEAD> <TITLE>Must be in a frame</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers if (top.location == self.location) { top.location.href = "frameset3.html?frame3a.html" } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H1>This is content page 1.</H1> </BODY> </HTML>
Script 4.8 listing:
<HTML> <HEAD> <TITLE>Must be in a frame</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers if (top.location == self.location) { top.location.href = "frameset3.html?frame3b.html" } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H1>This is content page 2.</H1> </BODY> </HTML>