I have an index page with iframes, two of the iframes I want to re-load in sequence, iframe1 at 20 seconds, then iframe2 20 seconds later, then iframe1 again in 20 seconds, then iframe2 again in 20 seconds, forever.
I have tried sleep() in php, , and other javascript.
Why does php and javascript not support a simple script pause?
do ( '1' < '2' ) {
sleep(20);
echo script type="text/javascript
echo 'parent.featuredBottom.location = "modules/featured-bottom.php"';
echo /script>
sleep(20);
echo script type="text/javascript
echo 'parent.randomBottom.location = "modules/random-bottom.php"';
echo /script
}
sleep(); pauses everything..
while (TRUE)is a nicer thando ( '1' < '2' )IMO.