Question:

How do I display time counting when you enter at this page?

by Guest32491  |  earlier

0 LIKES UnLike

How do I display time counting when you enter this page?

http://www.kinomapoftheuniverse.com/level3/2.html

It's a java script trick, i suspect but how?

Cheers!

9

 Tags:

   Report

2 ANSWERS


  1. This one is highly customizable. Time Zone Countdown Timer - Script:

    http://rainbow.arch.scriptmania.com/scri...

    Or this:

    Count Time On Page  - http://www.js-x.com/page/javascripts__ex...

    Ron


  2. I actually entered (using firefox), and didn't saw time counting. I looked at the source code and saw no javascript inserted.

    Anyway, if you want a time counter, use the setTimeout(); function like this to increase time each second, like this:

    time = 0; //Global, never resets

    function count() {

    time++;

    /* time = seconds. Here, u use code to create minutes and hours */

    /* Code here to refresh the HTML element with the time info */

    setTimeout(" count() ",1000);

    }

    Where 1000 is the number of MILIseconds for the function to be executed.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.