<?php
$timeout = 5000; //--- miliseconds ---
$pages = array(
"http://localhost/page1.php",
"http://localhost/page2.php",
"http://www.google.com",
"http://www.yahoo.com",
"http://www.playboy.com",
);
if (isset($_GET[currPage]))
$currPage = $_GET[currPage];
else
$currPage = 0;
print '<html>
<head>
<title>Presentation</title>
</head>
<body style="margin: 0 0 0 0">';
if (isset($pages[$currPage])){
print '<iframe id="presentFeame" src="'.$pages[$currPage].'" width="100%" height="100%" frameborder="0"></iframe>';
print '<script language="JavaScript">
setTimeout("this.location.href=\''.$_SERVER[PHP_SELF].'?currPage='.($currPage+1).'\'",'.$timeout.')
</script>';
}else{
print '<div align="center">That is the end!</div>';
}
print '</body>
</html>';
?>
.
Това ОК ли е?
Има три вида хора. Част от проблема, част от решението и част от пейзажа.Редактирано от mr.vain на 09.04.06 12:36.