FREE CODE Friday, 04.19.2024, 7:16 PM
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 » Time and Date in Statusbar » Time and Date in Statusbar
    Time and Date in Statusbar
    faxuhiDate: Monday, 07.25.2011, 3:43 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <HTML>
    <HEAD>
    <SCRIPT LANGUAGE="JavaScript">

    <!-- Hide JavaScript From Java-Impaired Browsers
    var timerID = null
    var timerRunning = false
    function MakeArray(size)
    {
    this.length = size;
    for(var i = 1; i <= size; i++)
    {
    this[i] = "";
    }
    return this;
    }
    function stopclock (){
    if(timerRunning)
    clearTimeout(timerID);
    timerRunning = false
    }
    function showtime () {
    var now = new Date();
    var year = now.getYear();
    var month = now.getMonth() + 1;
    var date = now.getDate();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var day = now.getDay();
    Day = new MakeArray(7);
    Day[0]="SUN";
    Day[1]="MON";
    Day[2]="TUE";
    Day[3]="WED";
    Day[4]="THU";
    Day[5]="FRI";
    Day[6]="SAT";
    var timeValue = "";
    timeValue += (Day[day]) + " ";
    timeValue += ((month < 10) ? " 0" : " ") + month + "-";
    timeValue += date + "-" + year + " ";
    timeValue += ((hours <= 12) ? hours : hours - 12);
    timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
    timeValue += (hours < 12) ? " AM" : " PM";
    window.status = timeValue;
    timerID = setTimeout("showtime()",1000);
    timerRunning = true
    }
    function startclock () {
    stopclock();
    showtime()
    }
    // End Hiding -->

    </SCRIPT>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startclock();">
    </BODY>
     
    Forum » Web Javascript » Time and Date in Statusbar » Time and Date in Statusbar
    • Page 1 of 1
    • 1
    Search:

    Copyright MyCorp © 2024 Website builderuCoz