Title:js time stamp write-based browse visitor--2013-12-23 14:07
<script language= "JavaScript" > var Timestamp,timetmp,rand; Rand = Math.floor (Math.random () *10); Random number timestamp = new Date (). GetTime (). toString (); Timestamp timetmp = (parseint (timestamp)/1000/60). ToString (); Intercept length + random number timetmp = timetmp.substring (2,8); Timetmp = (parseint (timetmp) -120000). ToString (); if (timetmp.length==4) { timetmp = "xx" +TIMETMP;} else if (timetmp.length==5) { timetmp = "0" +TIMETMP;} var AA = $ (". Rs_a"); for (var i=0; i < timetmp.length; i++) { aa[i].innerhtml = timetmp.substr (i,1);} </script>
Finally assign a value to the LI tag
<script language= "JavaScript" >var Timestamp,timetmp,rand;rand = Math.floor (Math.random () *10); Random number timestamp = new Date (). GetTime (). toString (); Timestamp timetmp = (parseint (timestamp.substr (5,6)) +rand). ToString (); Intercept length + random number document.write ("Timestamp:" +timestamp);d ocument.write (' </br> ');d ocument.write ("Random number:" +rand); document.write (' </br> ');d ocument.write ("Traffic:" +timetmp);</script>
If it is practical, it will have to be changed again.
JS based on time stamp write browse visitor number