Sabtu, 17 April 2010

Logic selamat pagi

#body>
#script>
var d=new Date();
a=d.getHours();
b=d.getMinutes();
c=d.getSeconds();
if (a#10){
document.write("selamat pagi");}
else if (a>11 && a#15){
document.write("selamat siang");}
else if (a>16 && a#18){
document.write("selamat siang");}
else
{document.write("selamat sore");}
#/script>
#/body>