اينم كد (زمان حضور كاربر را به يه شكل ديگر نشان مى دهد):
<!--Best Codes By WwW.Javacode.loxblog.com\Please Dont Delete this Line-->
<SCRIPT LANGUAGE="JavaScript">
startday = new Date();
clockStart = startday.getTime();
function initStopwatch() {
var myTime = new Date();
return((myTime.getTime() - clockStart)/1000);
}
function getSecs() {
var tSecs = Math.round(initStopwatch());
var iSecs = tSecs % 60;
var iMins = Math.round((tSecs-30)/60);
var sSecs ="" + ((iSecs > 9) ? iSecs : "0" + iSecs);
var sMins ="" + ((iMins > 9) ? iMins : "0" + iMins);
document.forms[0].timespent.value = sMins+":"+sSecs;
window.setTimeout('getSecs()',1000);
}
// End -->
</script>
<BODY onLoad="window.setTimeout('getSecs()',1)">
<CENTER>
<FORM>
<FONT SIZE="2" FACE="tahoma">زمان حضور شما:</FONT><input size=5 name=timespent>
</FORM>
</CENTER>
<!--Best Codes By WwW.Javacode.loxblog.com\Please Dont Delete this Line-->
نظرات شما عزیزان:
.: Weblog Themes By Pichak :.