<html>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
function display()
{
rtime=etime-ctime;
if (rtime>60)
m=parseInt(rtime/60);
else
m=0;
s=parseInt(rtime-m*60);
if(s<10)
s="0"+s
window.status="Kalan Süre: "+m+":"+s
window.setTimeout("checktime()",1000)
}
function settimes()
{
alert("Bu sayfa 5 dakika sonra yönlenecektir")
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
etime=hours*3600+mins*60+secs;
etime+=300;
checktime();
}
function checktime()
{
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
ctime=hours*3600+mins*60+secs
if(ctime>=etime)
expired();
else
display();
}
function expired()
{
var currentdate = 0
var theranlink = " "
var core = 0
function StringArray

{
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
link = new StringArray(10)
link[0] = 'http://www.javascript-page.com'
link[1] = 'http://www.yahoo.com'
link[2] = 'http://www.geocities.com/SoHo/1449'
link[3] = 'http://www.learnhtml.org'
link[4] = 'http://www.geocities.com'
link[5] = 'http://www.worldnet.att.net'
link[6] = 'http://ucprogramming.hypermart.net'
link[7] = 'http://www.lycos.com'
link[8] = 'http://www.pit-bull.com'
link[9] = 'http://www.netforward.com'
var ran = 60/link.length
function ranlink() {
currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore
theranlink = link[core]
self.location = theranlink
}
open(ranlink());
}
// -->
</SCRIPT>
</bdoy>
</html>
böle bişiler birleştirdim kendine göre düzenleyebilirsin