- Код: Выделить всё
<SCRIPT LANGUAGE="JavaScript">
currentTime = new Date();
if (currentTime.getHours() >= 6 && currentTime.getHours() <= 11 )
document.write("<b>241</b>");
if (currentTime.getHours() >= 12 && currentTime.getHours() <= 17 )
document.write("<b>320</b>");
if (currentTime.getHours() >= 18 && currentTime.getHours() <= 23)
document.write("140");
if (currentTime.getHours() >= 0 && currentTime.getHours() <= 5)
document.write("120");
</SCRIPT>
Цифры меняютса в каждой половине дня, можно ли зделать что б они менялись каждие 5 - 10 минут ?