Files: index.html, new.htm, surf_driver.htm, surf_display.htm

index.html:

<html><head><title>jared zyskowski</title></head>

<frameset rows = "55,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 scrolling=no>

<frame src=new.htm noresize scrolling=no>

<frame src='surf_display.htm' noresize name=main></frameset>

</HEAD>

</HTML>

----------------------------------------------------------------

new.htm:

<html><body bgcolor=#ffddff></body></html>

----------------------------------------------------------------

surf_driver.htm:

<html><head>

<script language=javascript>

run=1;

function start() {

t=setTimeout("surfer()",15000);

}

function random(maxValue) {

return (parseInt(Math.random()*maxValue));

}

function surfer() {

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserAccess");

if (window.top.frames[1].document.links.length!=0) {

number=random(window.top.frames[1].document.links.length);

if (number<window.top.frames[1].document.links.length && run==1) {

where=window.top.frames[1].document.links[number].href;

document.forms[0].elements[0].value=where;

window.top.frames[1].document.location=where;

document.bgcolor=window.top.frames[1].document.bgcolor;

}

t=setTimeout("surfer()",15000);

}

else if (window.top.frames[1].frames.length>1)

{

window.top.frames[1].document.location=window.top.frames[1].frames[random(window.top.frames[1].frames.length)].document.location;

t=setTimeout("surfer()",15000);

}

else if (window.confirm("No links on this page yet, Should I wait?"))

t=setTimeout("surfer()",15000);

}

</script></head><body onload="start()">

<form action="javascript:" onsubmit="window.top.frames[1].document.location=this.locate.value">

Location: <input type=text size=90 name=locate><br>

<input type=button value='Pause' onclick="run=0"><input type=button value='Unpause' onclick="run=1">

</form>

</body>

</html>

----------------------------------------------------------------

surf_display.htm:

<html><head></head><body bgcolor="#ffddff">

<font size=+2><center>Welcome to Web Surfer<br></font><font size+1>A program for everyone who is too lazy to surf the web by themselves.</center><p>This program will randomly select one of the links on each page<p>Enter a starting keyword and off you go!<p>

<form method=get action="http://search.yahoo.com/bin/search" onsubmit="window.top.frames[0].document.location='surf_driver.htm'">

<center><input type=text name="p" size=40>

<input type=submit value="Search!"></form>

</body>

</html>