<?php
$pages = array('first.php', 'second.php', 'third.php', 'fourth.php'); //list of pages to alternate
$yourdomain = '.yoursite.com'; //domain, be sure to include preceding .
if (!isset($_COOKIE['page'])) { //dont have cookie, havnt visited yet
setcookie('page', '0', time()+86400*365, '/', $yourdomain); //set cookie to page 1
include $pages[0]; //show the first page contents
} else { //have cookie
$next = ($_COOKIE['page'] >= sizeof($pages)-1) ? 0 : $_COOKIE['page'] + 1; //determine next page
setcookie('page', $next, time()+86400*365, '/', $yourdomain); //set cookie for next page
include $pages[$next]; //include the page they should see now
}
?>
i just made this, tested it and it seems to work as desired. you make all the files you want to show as homepages, and on your index page you put that code. on each load it will bring in the contents of the appropriate page.