title: Colorbox popup on schedule
body: <p>I looked and tried using scripts I found online to set a scheduled colorbox, so far it only worked in Chrome. Below is the script I'm currently using now. I know this must be very basic, but I hope somebody might help or point me the right direction.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>What I wanted is to have a colorbox displayed every time when people visits, the colorbox will disable it's function when it pass the "ScheduleDate", now only chrome will display the colorbox as planned, ie, firefox and safari seems to not recognize the script. There's no error in the browser console.</p>
  
  <pre><code>&lt;script&gt;
      today = new Date();
      today_year = today.getFullYear(); 
      today_month = today.getMonth()+1; 
      today_date = today.getDate(); 
      today_hours = today.getHours(); 
      today_minutes = today.getMinutes(); 
      today_seconds = today.getSeconds(); 
  
      var CurrentDate = today_year+"-"+today_month+"-"+today_date+"  "+today_hours+":"+today_minutes+":"+today_seconds;
      var ScheduleDate = "2014-10-12 00:00:00";
  
      if (  (Date.parse(CurrentDate)).valueOf() &lt;= (Date.parse(ScheduleDate)).valueOf())
      {
          $(document).ready(function(){               
              $(".iframe").colorbox({iframe:true, width:"300px", height:"250px", open:true});             
          });                     
      }
  &lt;/script&gt;
  </code></pre>