Jump to content

Jacedc

Members
  • Posts

    2
  • Joined

  • Last visited

About Jacedc

  • Birthday 03/06/1998

Previous Fields

  • Languages
    html, css, javascript

Profile Information

  • Interests
    Front-end development, Web apps, Compatibility detection and remedies

Jacedc's Achievements

Newbie

Newbie (1/7)

0

Reputation

  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...