title: JavaScript Countdown Timer to specific time everyday
body: <p>I am currently developing a website with a countdown timer at the headline: <a href="http://iphone.myhandykey.com/" rel="noreferrer">http://iphone.myhandykey.com/</a></p>
  
  <p>The current timer is just 12hrs + few mins.. What I would like is the countdown timer will show the time remaining until 11PM on the Time Zone of the current visitor. Is that possible? Thanks!</p>
  
  <pre><code>Here is the JavaScript:
  
  
  
  function startTimer(duration, display) {
      var timer = duration, hours, minutes, seconds;
          setInterval(function () {
  
  
  
          hours = parseInt(((timer / 60) / 60 ) % 60, 10);
  
  
  
          minutes = parseInt((timer / 60)%60, 10);
          seconds = parseInt(timer % 60, 10);
  
          hours = hours &lt; 10 ? "0" + hours : hours;
          minutes = minutes &lt; 10 ? "0" + minutes : minutes;
          seconds = seconds &lt; 10 ? "0" + seconds : seconds;
  
          display.textContent = hours + ":" + minutes + ":" + seconds;
  
  
  
          if (--timer &lt; 0) {
              timer = duration;
          }
      }, 1000);
  }
  
  window.onload = function () {
      var onehour = 60 * 600 * 1.231,
          display = document.querySelector('#time');
      startTimer(onehour, display);
  };
  </code></pre>
  
  <p>Here is the HTML:</p>
  
  <pre><code>&lt;span id=time&gt;&lt;/span&gt;
  </code></pre>
  
  <p>EDIT: If the visitor's current time is for example 11:40pm, It should display 23hrs &amp; 20mins left.. </p>