kodiak
03-24-2003, 09:55 AM
I've been trying to get this to work for a few days now, but I haven't been ableto find the help online.
It's an html file which displays four web-sites at once, and I've created a navigation page to control where each of the four frames addresses are.
I don't know the javascript to get this to work, so if anyone does, it would be very helpful.
And by the way, I know there are programs out there that do this anyway, I just wanted to see if this could work.
--multi.html--
<html>
<HEAD>
<title>Multi-Page</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function showRemote()
{
self.name = "main";
var windowprops = "toolbar=0,location=0,directories=0,status=0, " + "menubar=0,scrollbars=0,resizable=0,width=450,height=75";
OpenWindow = window.open("navigation.html", "remote", windowprops);
}
// End -->
</script>
</HEAD>
<frameset cols="50%,*">
<frameset rows="50%,*">
<frame src="http://mail.yahoo.com/" name="one" onLoad="showRemote()">
<frame src="http://www.google.com/" name="two">
</frameset>
<frameset rows="50%,*">
<frame src="http://www.cse.dmu.ac.uk/~mmc01db/ut_index.html" name="three">
<frame src="http://www.gamespy.com/" name="four">
</frameset>
</frameset>
</html>
--navigation.html--
<html>
<head>
<title>Navigation</title>
<script language="JavaScript">
<!-- Begin
changeFrame()
{
//code to change frame here
}
// End -->
</script>
</head>
<body>
<form method="get" action="navigation.html">
<input type="text" name="frmAddress"><br/>
<input type="radio" name="frmFrameNum" value="one" />1
<input type="radio" name="frmFrameNum" value="two" />2
<input type="radio" name="frmFrameNum" value="three" />3
<input type="radio" name="frmFrameNum" value="four" />4
<input type="submit" name="frmSubmit" value="-->" onClick="changeFrame()">
</body>
</html>
It's an html file which displays four web-sites at once, and I've created a navigation page to control where each of the four frames addresses are.
I don't know the javascript to get this to work, so if anyone does, it would be very helpful.
And by the way, I know there are programs out there that do this anyway, I just wanted to see if this could work.
--multi.html--
<html>
<HEAD>
<title>Multi-Page</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function showRemote()
{
self.name = "main";
var windowprops = "toolbar=0,location=0,directories=0,status=0, " + "menubar=0,scrollbars=0,resizable=0,width=450,height=75";
OpenWindow = window.open("navigation.html", "remote", windowprops);
}
// End -->
</script>
</HEAD>
<frameset cols="50%,*">
<frameset rows="50%,*">
<frame src="http://mail.yahoo.com/" name="one" onLoad="showRemote()">
<frame src="http://www.google.com/" name="two">
</frameset>
<frameset rows="50%,*">
<frame src="http://www.cse.dmu.ac.uk/~mmc01db/ut_index.html" name="three">
<frame src="http://www.gamespy.com/" name="four">
</frameset>
</frameset>
</html>
--navigation.html--
<html>
<head>
<title>Navigation</title>
<script language="JavaScript">
<!-- Begin
changeFrame()
{
//code to change frame here
}
// End -->
</script>
</head>
<body>
<form method="get" action="navigation.html">
<input type="text" name="frmAddress"><br/>
<input type="radio" name="frmFrameNum" value="one" />1
<input type="radio" name="frmFrameNum" value="two" />2
<input type="radio" name="frmFrameNum" value="three" />3
<input type="radio" name="frmFrameNum" value="four" />4
<input type="submit" name="frmSubmit" value="-->" onClick="changeFrame()">
</body>
</html>