Jump to content

javascript countdown


rtkwar

Recommended Posts

yes ivisit google before but iwant put all information inside function:

example:

<script type="text/javascript">

function timer(date){

dat=document.getElementById("date");

var time=dat.split(":");

if(time[0]>0){

time[0]=time[0]-1;

t=settimeout("timer('date')",1000);

document.getElementById("date").innerHTML=time[0];

}else{}

}

</script>

<b id=test>5:09:59</b>

timer('test')

 

any one can give me code?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.