FREE CODE Friday, 03.29.2024, 0:09 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
    • Page 1 of 1
    • 1
    Forum » Web Javascript » Clock the visitor time visiting the page » Clock the visitor time visiting the page
    Clock the visitor time visiting the page
    faxuhiDate: Sunday, 07.24.2011, 11:47 AM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    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="Arial">Time spent here: </FONT><input size=5 name=timespent>
    </FORM>
    </CENTER>
     
    Forum » Web Javascript » Clock the visitor time visiting the page » Clock the visitor time visiting the page
    • Page 1 of 1
    • 1
    Search:

    Copyright MyCorp © 2024 Website builderuCoz