Very powerful javascript implementation pointer time
<Html xmlns: v = "urn: schemas-microsoft-com: vml"> <script defer> function clock () {var nowtime = new Date () nowhour = nowtime. getHours () if (nowhour> = 12) nowhour-= 12 nowminute = nowtime. getMinutes () nowsecond = nowtime. getSeconds () nowmill = nowtime. getMilliseconds () var harc, marc, sarc, mmarc harc = (nowhour + nowminute/60 + nowsecond/3600 + nowmill/3600000) * 30 marc = (nowminute + nowsecond/60 + nowmill/60000) * 6 sarc = (nowsecond + nowmill/1000) * 6 // angle string nh = (180-harc) * Math. PI/180 harcT = Math. sin (nh) * 250 + 500 harcL = Math. cos (nh) * 250 + 500 harcStr = harcT + "," + harcL document. all. hourline. to. value = harcStr // minute string nm = (180-marc) * Math. PI/180 marcT = Math. sin (nm) * 350 + 500 marcL = Math. cos (nm) * 350 + 500 marcStr = marcT + "," + marcL document. all. minuteline. to. value = marcStr // second string sm = (180-sarc) * Math. PI/180 sarcT = Math. sin (sm) * 400 + 500 sarcL = Math. cos (sm) * 400 + 500 sarcStr = sarcT + "," + sarcL document. all. secondline. to. value = sarcStr document.all.txt. innerHTML = "current time:" + nowtime. getHours () + ":" + nowtime. getMinutes () + ":" + nowtime. getSeconds () setTimeout ("clock ()", "50")} script <STYLE> v \: * {Behavior: url (# default # VML )} </STYLE> <body onLoad = "clock ()"> <v: group id = "clock" Coordsize = "200" style = "width: 200; height; position: relative "> <v: Oval id =" outercircle "style =" width: 1000; height: 1000; z-index: 10; "fillcolor =" gray "/> <v: oval id =" innercircle "style =" position: relative; top: 75; left: 75; width: 850; height: 850; z-index: 15 "fillcolor =" white "/> <v: line id =" hourline "style =" position: relative; z-index: 20 "from =" 500,500 "to =" 800,800 "strokeColor =" gray "> <v: stroke startarrow = "oval" endarrow = "classic" dashstyle = "Dot" strokeColor = "red"/> </v: line> <v: line id = "minuteline" style = "position: relative; z-index: 20" from = "500,500" to = "500,900" strokeColor = "black"> <v: stroke endarrow = "classic" dashstyle = "Dot"/> </v: line> <v: line id = "secondline" style = "position: relative; z-index: 20 "from =" 500,500 "to =" 400,900 "strokeColor =" black "> <v: stroke endarrow =" classic "dashstyle =" Dot "/> </v: line> 12 3 6 9 <v:/group> <p id = txt style = "position: relative; top: 220; left: 40; border: 1px solid black; font-size: 12px; width: 125; padding: 3px "> </p> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]