javascript help needed!!!
javascript help needed!!!
Out of context: Reply #12
- Started
- Last post
- 17 Responses
- mitsu0
here, just use my date function:
paste it in script tags in your body:
function showtime()
{
var dt = new Date();
var hr=dt.getHours();
var mn=(dt.getMinutes()<9)?"0"+dt.ge...
var sc=(dt.getSeconds()<9)?"0"+dt.ge...
var ampm=(hr<12)?"am":"pm";
hr-=12;
window.status=hr+":"+mn+":"+sc+" "+ampm;
setTimeout("showtime()", 250);
}
showtime();