Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2006
    Posts
    236
    Tokens
    0

    Default Simple Time Script

    SImple Time Script
    <script language="JavaScript"> function resetIt() {

    var timerID = null;
    var timerRunning = false;

    if(timerRunning)
    clearTimeout(timerID);
    timerRunning = false;

    var timeNow = new Date();
    var hours = timeNow.getHours();
    var minutes = timeNow.getMinutes();
    var seconds = timeNow.getSeconds();
    var timeValue = "" + ((hours >12) ? hours -12 :hours)
    timeValue = ((timeValue <10)? "0":"") + timeValue
    timeValue += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue += ((seconds < 10) ? ":0" : ":") + seconds
    timeValue += (hours >= 12) ? " PM" : " AM"
    timerID = setTimeout("resetIt()",100);
    timerRunning = true;

    var dateNow = new Date();
    var days = new Array('Sunday','Monday','Tuesday','Wednesday',
    'Thursday','Friday','Saturday');

    var months = new
    Array('January','February','March','April','May',' June','July',
    'August','September','October','November','Decembe r');

    var date = ((dateNow.getDate()<10) ? "0" : "")+ dateNow.getDate();
    function y2k(number){return (number < 1000) ? number + 1900 : number;}

    today = timeValue + " " + days[dateNow.getDay()] + " " +
    months[dateNow.getMonth()] + " " +
    date + " " +
    (y2k(dateNow.getYear()));
    if(document.all || document.getElementById){ // Browser Check
    document.title = today.toString();
    }else {
    self.status = today.toString(); // Default to status.
    }
    }


    resetIt();

    </script>

  2. #2
    Join Date
    Nov 2006
    Location
    Leeds, Yorkshire
    Posts
    992
    Tokens
    0

    Default

    thanks may come in useful.


  3. #3
    Join Date
    Mar 2006
    Location
    C:\\Program Files
    Posts
    2,592
    Tokens
    0

    Latest Awards:

    Default

    Thanks Nick ^^


  4. #4
    Join Date
    Nov 2006
    Location
    Doncaster, UK
    Posts
    1,700
    Tokens
    0

    Latest Awards:

    Default

    Where'd you take that from?

    You couldn't even code your own layout, let along JS.
    unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
    puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
    costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
    norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.



  5. #5
    Join Date
    May 2006
    Location
    New Zealand
    Posts
    4,452
    Tokens
    0

    Latest Awards:

    Default

    javascriptkit i guess!
    New Zealand Web/Tech News

  6. #6
    Join Date
    Nov 2006
    Location
    Leeds, Yorkshire
    Posts
    992
    Tokens
    0

    Default

    Quote Originally Posted by Netik View Post
    Where'd you take that from?

    You couldn't even code your own layout, let along JS.
    Oh sometimes I just wish you would shut the hell up, and other times you are nice.
    It's a forum member trying to help the other members. fgs.


  7. #7
    Join Date
    Nov 2006
    Location
    Doncaster, UK
    Posts
    1,700
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by emergency View Post
    Oh sometimes I just wish you would shut the hell up, and other times you are nice.
    It's a forum member trying to help the other members. fgs.
    The fact he never stated where he got it from, the source or anything makes people believe that he coded it himself.

    Which will end up false accusations blah blah blah.

    So if I posted every DHTML; JS; PHP; CSS code, every one a new thread... that'd be helping out?
    unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
    puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
    costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
    norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.



Posting Permissions

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