Имам следния код:
Как да му задам да се показва на всеки 24 часа?
Код:
<script type="text/javascript" src="http://cstrike-help.ucoz.net/JSCSS/JS3.js"></script>
<script type="text/javascript" src="http://cstrike-help.ucoz.net/JSCSS/JS2.js"></script>
<script type="text/javascript" src="http://cstrike-help.ucoz.net/JSCSS/JS1.js"></script>
<form id="xth" action="http://bgtop.net/in.php" target="_blank" method="get">
<input type="hidden" name="site" value="1243124975">
</form>
<div id="root" style="z-index: 300; position:absolute; absolute; height: 118px; #height: 115px; width: 360px; cursor: default; left: 320px; top: 170px; background-image: url(../images/center.png); border: 0; visibility: hidden" onselectstart="return false">
<div id="handle" style="width: 360px; height: 25px; background-image: url('../images/head.png'); color: #FFFFFF; font-weight: bold; font-family: Verdana; font-size: 12px; ; display: table; border-bottom: 0">
<div style="display: table-cell; vertical-align: middle; #position: relative; color: #FFFFFF; #top: 5px">
<div align="right"><a href="#" onClick="document.getElementById('root').style.visibility = 'hidden';" title="Затвори"><img src="../images/closes.png" border="0" width="13" height="13"></a> </div>
</div>
</div>
<div align="center"> <br /><br /><input type="button" onClick="document.getElementById('root').style.visibility = 'hidden'; createCookie('cdvote', '1', '1'); document.forms['xth'].submit()" value="Гласувайте за нас!"><br /><br /></div>
<div id="handle" style="width: 360px; height: 29px; *height: 29px; background-image: url('../images/down.png'); color: #FFFFFF; font-weight: bold; font-family: Verdana; font-size: 12px; ; display: table; border-bottom: 0">
<div style="display: table-cell; vertical-align: middle; #position: relative; color: #FFFFFF; #top: 5px">
<div> </div>
</div>
</div>
</div>
<script type="text/javascript">
Drag.init(document.getElementById("handle"), document.getElementById("root"));
if (readCookie('cdvote') != 1) {
document.getElementById('root').style.visibility = "visible";
}
</script>
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/3 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
Как да му задам да се показва на всеки 24 часа?