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
__________________
<!--- <font face="Arial"style="font-size: 12px;"color="#EC0000">
<b>YourSearchNow.com</b> PPC SE
<b>ClickForWebmasters.com</b> Traffic & Resources<br>
<A HREF="http://stats.ars4real.com/wmref/click.php?type=but&a=1021535"><IMG SRC="http://stats.ars4real.com/wmref/load.php?type=but&a=1021535" BORDER=0></A> --->
<a href="http://www.greenguysboard.com/rules.html">Read The Rules</a>