Tag Archives: Class Time

Date + clock that changes

Hi How do you create a particular date and time within my page that keeps real time Many thanks I’m kinda in search of the same respond to. I found a free Java applet, Espresso Date, that achieves this, but you simply can’t change the font or even size. If anyone knows a good Java date applet, complete me in. http: //www. completeesolutions. com/Java/DateTime. htm it could help I utilize this little javascript to get time, does the trick for me: Code: var now=new Night out () var hour=now. getHours() var min=now. getMinutes() day=" AM" in the event (hour> 11) day=" PM" in the event (hour==0) hour=12 in the event (hour > 12) hour=hour-12 in the event (min< 10) min=" 0" +min insurance. write(" < cover class=time> " +hour+": " +min+day+" < /span> " ) EDIT: Only pulled this down www. w3schools. com, it is just a short date script. You can manipulate the words with an array if you want, this script may return the particular date in numberical vogue: 30. 1. 2007 is today’s result: Code: < script type=" text/javascript" > var n = new Date() insurance. write(d. getDate()) insurance. write(". " ) insurance. write(d. getMonth() + 1) … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment