Sabtu, 17 April 2010

Logic radio


#head>

#script>

var d=new Date();

a=d.getHours();

b=d.getMinutes();

c=d.getSeconds();

b=check(b);

c=check(c);

document.getElementById('txt'.innerHTML=a+":"+b":"+c;

setTimeout("time()",500);

function check(i){

if(i#10){

i="0"+i;

}

return i;

}

#/script>

#/head>

#body onLoad="time()">

#table align="center" width="500" border="2">

#tr>

#td id='txt'>NAME :#/td>

#td colspan="2">#input type="text" />#/td>

#/tr>

#tr>

#td id='txt'>ADDRESS :#/td>

#td colspan="2">#input type="textarea" >#/textarea>#/td>

#/tr>

#tr>

#td id='txt'>GENDER :#/td>

#td>#input type="radio" name="a"/>Pria#/td>

#td>#input type="radio" name="a"/>Wanita#/td>

#/tr>

#/table>

#/body>