Admin Admin
Mesaj Sayısı : 158 Kayıt tarihi : 18/11/08
| Konu: alarmlı saat kodu güzel C.tesi Kas. 22, 2008 1:44 pm | |
|
//Enter path to mid file to play / var musicsrc="apollo13.mid"
function sivamtime() { now=new Date(); hour=now.getHours(); min=now.getMinutes(); sec=now.getSeconds();
if (min<=9) { min="0"+min; } if (sec<=9) { sec="0"+sec; } if (hour>12) { hour=hour-12; add="pm"; } else { hour=hour; add="am"; } if (hour==12) { add="pm"; } if (hour==00) { hour="12"; }
document.hours.clock.value = (hour<=9) ? "0"+hour : hour; document.minutes.clock.value = min; document.seconds.clock.value = sec; document.ampm.clock.value= add; setTimeout("sivamtime()", 1000);
}
playit=false //PLAY MUSIC function by http://www.javascriptkit.com function playmusic(){ musicwin=window.open("","","width=100,height=100") if (navigator.appName=="Microsoft Internet Explorer") musicwin.document.write('') else musicwin.document.write(' | |
|