Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Frameset question (http://www.greenguysboard.com/board/showthread.php?t=6824)

kamilla 2004-04-18 06:04 PM

Frameset question
 
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:

PHP Code:

<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 06: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.


All times are GMT -4. The time now is 03:07 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc