peasepud
Programmer
- Jul 20, 2007
- 35
Hi all,
I have a simple countdown script and wish to pass a date and time to it.
I have tried a few things all to no avail, I think Im close but still dont get any result other than everything staying as 00:00:00:00 (the default text)
Im using the following:
var targetDateate = new Date(yr,mn,dy,hr,mn);
and then a URL of param name="movie" value="flashcount2.swf?yr=2007&mn=6&dy=28&hr=15&mn=00"
I know the script works normally because inserting a date into targetDate works fine so its something to do with passing the data. Do I have to set up the variables beforehand or do something to them before assigning?
I have a simple countdown script and wish to pass a date and time to it.
I have tried a few things all to no avail, I think Im close but still dont get any result other than everything staying as 00:00:00:00 (the default text)
Im using the following:
var targetDateate = new Date(yr,mn,dy,hr,mn);
and then a URL of param name="movie" value="flashcount2.swf?yr=2007&mn=6&dy=28&hr=15&mn=00"
I know the script works normally because inserting a date into targetDate works fine so its something to do with passing the data. Do I have to set up the variables beforehand or do something to them before assigning?