Results 1 to 4 of 4

Thread: StatusBar Clock

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2005
    Location
    Serbia & Montenegro
    Posts
    71

    Default StatusBar Clock

    StatusBar Clock

    Code:
     <SCRIPT LANGUAGE="JavaScript">
      <!-- Hide this from older browsers
    
      function display() {
        var Today = new Date();
        var hours = Today.getHours();
        var min = Today.getMinutes();
        var sec = Today.getSeconds();
        var Time = ((hours > 12) ? hours - 12 :(hours == 0) ? 12 :hours);
        Time += ((min < 10) ? ":0" : ":") + min;
        Time += ((sec < 10) ? ":0" : ":") + sec;
        Time += (hours >= 12) ? " PM" : " AM";
        window.status = Time;
        setTimeout("display()",1000);
      } 
    
      display(); 
    
      // end hide -->
    </SCRIPT>

  2. #2
    Join Date
    Apr 2005
    Posts
    56

    Default

    Nice scipt to write clock on task bar :D

  3. #3
    Join Date
    Jul 2005
    Location
    Serbia & Montenegro
    Posts
    71

    Default

    This script is not for taskbar. It's for Internet Explorer status bar.

  4. #4
    Join Date
    Apr 2005
    Posts
    56

    Default

    Yes ... Sorry I by mistake write task bar ... :D :D

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •