The problem lies in the following line
Code:
var futuredate=new cdtime("countdowncontainer", "April 17, 2007 24:00:00")
If you create a date variable using Date object of JavaScript the date string format should match the parse() method of the Date object. Now if you put the following code in your script
Code:
var pRes = Date.parse("April 17, 2007 24:00:00");
In case of Mozilla Firefox the above code will work without any problem but in IE it will store NaN in variable pRes. This only happens if you provide 24:00:00 as the time string if you give any other time format it will work without problem.
In other words if you give this code
Code:
var futuredate=new cdtime("countdowncontainer", "April 17, 2007 24:00:00")
as this code
Code:
var futuredate=new cdtime("countdowncontainer", "April 17, 2007 23:59:59")
the script will work both in IE and Firefox
Bookmarks