| JavaScript Status clock - Basic |
|
|
|
| Written by Chetankumar Akarte | |
| Wednesday, 02 May 2007 | |
JavaScript Status clock - BasicIn this article we are going to see the ways to add different effects at the status bar of a web browser. The status bar is the small text area in the lower-left corner of a browser window where messages are typically displayed indicating download progress or other browser status items. It is possible to control the contents of this region with JavaScript. Many developers use this region to display short messages. The benefit of providing information in the status bar is debatable, particularly when you consider the fact that manipulating this region often prevents default browser status information from being displayed—information that many users rely upon. Here we are see how to add clock at our browse status bar. Take a look below on piece of code…
<script type="text/javascript" language="javascript"> timerId = setTimeout(script-to-execute, time-in-milliseconds); As the BrowserClock() get called after every 1000 milliseconds recursively. A new value by Date() class gets stored in variable today. Date class is mostly used for define and manipulate dates. You can get current time as well as date. You can also perform calculation based on date or times using date class. This is not a reserved word so you can declare your own variable or function called Date but if you do then you will not be able to use the Date class.
syntax:-
example:Please download source code to see example...
|
|
| Last Updated ( Tuesday, 04 September 2007 ) |