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)
insurance. write(". " )
insurance. write(d. getFullYear())
< /script> 

http: //www. 0-gfx. com

To the top-right is the analog JS clock which i made.: -P

With these rules will i have the ability to change font coloration size and make the background see-thorugh

Yes. Put it in the < div> tag. And for the formatting produce a CSS class for your font and shade and associate it while using div tag.

transio: I don’t know if that 0-gfx web page is finished, but in Opera it is rather crappy. Don’t acquire mad, just wanting to help.; -)

just remember to make a good use of the clock though!! It might come out being tacky if you are using it wrong, heh.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *