
August 7th, 2003, 10:57 AM
|
|
Contributing User
|
|
Join Date: May 2003
Posts: 106
Time spent in forums: 6 h 20 m 4 sec
Reputation Power: 6
|
|
|
Opening Windoes Problem
Hi all,
I have a very basic problem. I ussually program PHP but to do what I want to do I need javascript. I have made a script that automatically opens 12 websites. This is not a problem I have done this and it works fine. The only thing is that I want my first webpage to open into a new window, then all the webpages after that replace the window that came before it. Here is y script that does this:
<?php
if ($spot==13) { print "<script> location.href='scratchcomp.php' </script>"; }
sleep($secs);
$newspot=$spot+1;
print "<script>";
print "window.open('http://www.outwar.com/scratch_play.php?spot=$spot'); ";
print "location.href='doscratch.php?spot=$newspot&secs=$secs'; ";
print "</script>";
?>
Any help would be appreciated.
|