20-08-2005, 08:55 AM
|
#8 (permalink)
|
| Xbox 360 Member
Join Date: Aug 2005
Posts: 36 | I have found the following code in the SWF file on the site. Could the data inputted by "target_mill" be the date that the site is counting down to? 27th August? But this does not coincide with the time that the site is counting down to.
Perhaps you guys can figure it out?
target_mill = date.utc(2005, 8, 27, 12);
getNewTime = function ()
{
now = new Date();
now_mill = date.utc(now.getfullyear(), now.getmonth(), now.getdate(), now.gethours(), now.getminutes(), now.getseconds());
deficit = target_mill - now_mill;
if (deficit < 0)
{
clearInterval(intvl);
gotoAndStop("end");
} // end if
trace (target_mill + " " + now_mill + " " + deficit);
var _l3 = int(deficit / 1000 / 60 / 60 / 24);
deficit = deficit - _l3 * 1000 * 60 * 60 * 24;
var _l2 = int(deficit / 1000 / 60 / 60);
deficit = deficit - _l2 * 1000 * 60 * 60;
var _l1 = int(deficit / 1000 / 60);
deficit = deficit - _l1 * 1000 * 60;
var seconds_left = int(deficit / 1000);
if (_l3 < 10)
{
_l3 = "0" + _l3;
} // end if
if (_l2 < 10)
{
_l2 = "0" + _l2;
} // end if
if (_l1 < 10)
{
_l1 = "0" + _l1;
} // end if
if (seconds_left < 10)
{
seconds_left = "0" + seconds_left;
} // end if
countdown.days0.text = _l3.toString().charAt(0);
countdown.days1.text = _l3.toString().charAt(1);
countdown.hours0.text = _l2.toString().charAt(0);
countdown.hours1.text = _l2.toString().charAt(1);
countdown.mins0.text = _l1.toString().charAt(0);
countdown.mins1.text = _l1.toString().charAt(1);
countdown.secs0.text = seconds_left.toString().charAt(0);
countdown.secs1.text = seconds_left.toString().charAt(1);
};
getNewTime();
intvl = setInterval(getNewTime, 1000); |
| |