Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-04-18, 06:04 PM   #1
kamilla
Trying is the first step towards failure
 
kamilla's Avatar
 
Join Date: Oct 2003
Posts: 120
Send a message via ICQ to kamilla
Red face 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
__________________
<!--- <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>
kamilla is offline   Reply With Quote
Old 2004-04-18, 06:25 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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