What's the Time Now ?





--:--:--


<script>

//<![CDATA[
onload = function Startmove()
{

tm=window.setInterval("movetext();",60)

}
//]]>






function movetext()
{
var today= new Date();
var str="am"
if (today.getHours()>12)
str="pm"
mytime.innerHTML="<b><i>"+today.getHours()+":"+today.getMinutes()+":"+today.getS

econds()+str


}

function Stopmove()
{
window.clearInterval(tm)
}


</script>



<div id=mytime style="background:orange;

border-style:double;font-family:Lucida Sans;width:101px">--:--:--</div>

No comments:

Post a Comment

Thanks for visiting my Blog!

Have a Question ? Need Help in College Assignments, Need Code that is not available here? Just leave a comment & get your code instantly.

Tips to Enhance Your Blog