javascript help needed!!!

Out of context: Reply #7

  • Started
  • Last post
  • 17 Responses
  • takashi0

    if (hours=13)
    var dn="pm"
    var hours = hours-12
    if (hours==24)
    var dn="pm"
    var hours = 0

    ...but you should look out for a cleaner code for this clock, its not in correct javascript syntax: lacking ";" at end of lines, "{" and "}" at the if statements, lacking of correct script declaration in the script-tag....im not sure if 'your' code will work properly on every machine....do a search in google for 'javascript clock' and pick a proper code.

View thread