CODE
<meta http-equiv='refresh' content='15'; URL=nav.php>
<html>
<head>
</head>
<script LANGUAGE="JavaScript">
function redirect () {
<?php
session_start();
session_register ("cam");
$HTTP_SESSION_VARS ["cam"] = $cam;
print $cam;
if (isset($_GET['cam'])) {
//checks to see if this is the first time a user has come to the site
switch (($_GET['cam'])) {
case "1":
print "parent.main.location='http://google.com'";
$cam="2";
break;
case "2":
print "parent.main.location='http://ebay.com'";
$cam="3";
break;
case "3":
print "parent.main.location='http://yahoo.com'";
$cam="1";
break;
default:
print "parent.main.location='http://whatcounter.com'";
$cam="2";
break;
}//end switch
}//end if
else
//this is the first time they have come to the site so show default nav
{
print "parent.main.location='http://whatcounter.com'";
$cam="2";
}
?>
}
</SCRIPT>
<body ######="javascript:redirect()">
<a HREF="javascript:redirect()">Auto Cycle</a>
</body>
</html>
#####=on load
Any help would be appreciated. Thank you,