PDA

View Full Version : Frameset question


kamilla
2004-04-18, 07:04 PM
I'm trying to add a timed redirect to a page with 2 frames and so far I can't get it to work. Have asked on a couple of boards and no solution yet... maybe someone here can tell me what the problem is:

<html>
<head><SCRIPT LANGUAGE="JavaScript">
<!--

function go_now () {
if(self.window!=parent.window){
parent.window.location.href = "http://www.newsite.com";
}
}
//-->
</SCRIPT>
<script language=JavaScript>
var Delay = 12; // seconds
function Timer() {
Timer = setTimeout("ReDirect()", Delay*1000);
return false;
}

function ReDirect() {
exit=false;
window.location="http://www.newsite.com";
}

// End -->
</SCRIPT>

</head>

<frameset rows="*,2" frameborder="NO" border="0" framespacing="0" cols="*">
<frame name="mainFrame" src="main.htm">
<frame name="bottomFrame" scrolling="NO" noresize src="Frame.htm">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000" onLoad=Timer(); ">

</body></noframes>
</html>
Thanks, Kamilla

Cleo
2004-04-18, 07:25 PM
You could put a timed redirect to a whole new page that had frames in the head section of the page that has the frames.

You can make any of the pages within the frame have a timed redirect by putting the timed redirect in the head section of the page that the frame is calling up.

Not sure I understand what it is you are trying to do.