Question:

Can you get clocks on your webpage that work without internet connection?

by  |  earlier

0 LIKES UnLike

I want people to be able to access the clock on my webpage on the move, without internet connection required. Is there a way to do? Like a way u can get it to display the time set on your system? Becoz that doesn't require internet connection.

 Tags:

   Report

3 ANSWERS


  1. Yes.  Javascript will do it.  

    I beleive this is code to do that. You may need to modify it.

    <html>

    <body>

    <script type="text/javascript">

    var CDate = new Date()

    document.write(CDate.getDate())

    document.write("/")

    document.write(CDate.getMonth()+1)

    document.write("/")

    document.write(CDate.getFullYear())

    document.write("@")

    document.write(CDate.getHours()+":")

    document.write(CDate.getMinutes()+":"+...

    </script>

    </body>

    </html>


  2. There are two ways to have a clock on a webpage.

    1: use a script that accesses the system-clock.  Just google "javascript clock" and I'm sure you'll find something to suit you.  There are many kinds...cursor trail clocks, status bar clocks, in-line text clocks, form-clocks...

    2: use a script that access a web-clock (usually server-side script, I've never done it this way)

  3. How do you expect people to access your webpage if they don't have an internet connection?

    Are you going to carry your laptop around...?!?

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.