home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 April
/
Chip_2003-04_cd1.bin
/
internet
/
denjisa
/
head.php
< prev
next >
Wrap
PHP Script
|
2002-09-17
|
2KB
|
54 lines
<?
Header("Pragma: no-cache");
Header("Cache-control: no-cache");
Header("Expires: ".GMDate("D, d m Y H:i:s")." GMT");
?>
<html>
<head>
<title>Kontrola nov²ch odkazov</title>
<style type="text/css"> input {
background-color: #6495ED;
color: #000000;
border-left: 0px;
border-right: 0px;
border-top: 0px;
border-bottom: 0px;
}</style>
<link REL="STYLESHEET" HREF="css/e.css" TYPE="text/css">
</head>
<body style="font-size: 10px; font-family: verdana, arial, helvetica; color: black; background-image: url('pic/text.jpg'); background-repeat: repeat; background-attachment: fixed;">
<?
require "./const.php";
ClearStatCache(); // vymaz vyrovnavaciu pamet
$newSize = FileSize($subor); // zisti velkost suboru
if($newSize != $oldSize): // pribudol novy odkaz ?
?>
<script language="JavaScript">
parent.frames["show"].location = "show.php" // obnov ramec "show"
</script>
<?
endif;
?>
<form name="form">
<div class="design2">Kontrola za <input type="text" name="timer" size="1" readonly> s</div>
</form>
<script language="JavaScript">
var t = 10 // konstanta v sekundach znovunacitania stranky
function Timer(){
document.form.timer.value = t // vypis do formulara
if(!t) // uplynula doba casovaca
parent.frames["head"].location = "head.php?oldSize=<?echo $newSize?>"
else{
t--
setTimeout("Timer()",999) // spusti opat o 1 sekundu
}
}
Timer() // spustenie odpocitavania
</script>
</body>
</html>