Jump to content

Jacedc

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Jacedc

  1. Ah, okay. Thanks! Do you think there's any possible way to be able to make $time.military work? Like $time = {military: "<span id='clock'></span>"}
  2. Hello, I'm creating a Javascript military clock widget and everything appears to be correct as far as I can tell, but it's not working. Any ideas? Here's my code: window.onload = function time_func(){var ct = new Date();var h = ct.getHours();var m = ct.getMinutes(); setTimeout(time_func(), 1000);} var $time = {military: h + ":" + m} [then in my HTML file]<script type="text/javascript">document.write($time.military);</script>
×
×
  • Create New...