How to realize Picture Digital clock with JS
This article mainly introduces JS how to achieve the picture digital clock, the article introduces in great detail, has a certain reference value, interested friends must read it!
First of all, this is the picture we prepared.
Document
/ / function function get () {/ / get page img var img=document.getElementsByTagName ('img'); / / get time var date=new Date (); var hour=date.getHours (); var minute=date.getMinutes (); var secind=date.getSeconds (); / / add 0 if (hour)