- Joined
- Sep 1, 2008
- Messages
- 384
- Reaction score
- 91
<code>
Blood Castle
<span id=timespan2>
<script>
var minute2 = 55;var secundes2 = 38;bcin = minute2 * 60 + secundes2;
if(minute2 > 30) doin = 3600 - bcin;
else doin = -bcin;
dobc = doin + 25*60;
function changeeventtime2()
{
dobc = dobc - 1;
if(dobc < -5*60)
{
dobc = 3600 + 30*60;
dobc = dobc-1;
}
min2 = Math.floor(dobc/60);
sec2 = dobc%60;
if(min2 < 0)
{
document.getElementById("timespan2").innerHTML="Open";
}
else
{
if(min2 < 10) min2 = "0"+min2;
if(sec2 < 10) sec2 = "0"+sec2;
document.getElementById("timespan2").innerHTML=min2+":"+sec2;
}
window.setTimeout("changeeventtime2()",1000);
}
changeeventtime2();
</script>
</span>
<br>
Devil Square
<span id=timespan>
<script>
var dods;
var hour = 11;var minute = 55;var secundes = 38;dsin = minute * 60 + secundes;
function changeeventtime()
{
dsin = dsin + 1;
if(hour == 2 || hour == 4 || hour == 6 || hour == 8 || hour == 10 || hour == 12)
{
dods = 56*60 - dsin;
}
else
{
dods = 116*60 - dsin;
}
min = Math.floor(dods/60);
sec = dods%60;
if(dods < 0)
{
document.getElementById("timespan").innerHTML="Open";
}
else
{
if(min < 10) min = "0"+min;
if(sec < 10) sec = "0"+sec;
document.getElementById("timespan").innerHTML=min+":"+sec;
}
window.setTimeout("changeeventtime()",1000);
}
changeeventtime();
</script>
</span>
</code>
Просто го сложете във вашия индекс на сайта и ще се получи нещо такова http://mu.mugamer.com/ вижте под сървър инфо
Credits : BattleZone
Blood Castle
<span id=timespan2>
<script>
var minute2 = 55;var secundes2 = 38;bcin = minute2 * 60 + secundes2;
if(minute2 > 30) doin = 3600 - bcin;
else doin = -bcin;
dobc = doin + 25*60;
function changeeventtime2()
{
dobc = dobc - 1;
if(dobc < -5*60)
{
dobc = 3600 + 30*60;
dobc = dobc-1;
}
min2 = Math.floor(dobc/60);
sec2 = dobc%60;
if(min2 < 0)
{
document.getElementById("timespan2").innerHTML="Open";
}
else
{
if(min2 < 10) min2 = "0"+min2;
if(sec2 < 10) sec2 = "0"+sec2;
document.getElementById("timespan2").innerHTML=min2+":"+sec2;
}
window.setTimeout("changeeventtime2()",1000);
}
changeeventtime2();
</script>
</span>
<br>
Devil Square
<span id=timespan>
<script>
var dods;
var hour = 11;var minute = 55;var secundes = 38;dsin = minute * 60 + secundes;
function changeeventtime()
{
dsin = dsin + 1;
if(hour == 2 || hour == 4 || hour == 6 || hour == 8 || hour == 10 || hour == 12)
{
dods = 56*60 - dsin;
}
else
{
dods = 116*60 - dsin;
}
min = Math.floor(dods/60);
sec = dods%60;
if(dods < 0)
{
document.getElementById("timespan").innerHTML="Open";
}
else
{
if(min < 10) min = "0"+min;
if(sec < 10) sec = "0"+sec;
document.getElementById("timespan").innerHTML=min+":"+sec;
}
window.setTimeout("changeeventtime()",1000);
}
changeeventtime();
</script>
</span>
</code>
Просто го сложете във вашия индекс на сайта и ще се получи нещо такова http://mu.mugamer.com/ вижте под сървър инфо
Credits : BattleZone