Still Need HELP with countdown - Puhleez!

disneyispi

Mouseketeer
Joined
Aug 5, 2002
Messages
122
I've tried the countdown 4x. I can't get it to say the days , hours, and minutes. Instead I get NaN days, NaN hours, please help? I've waited until it loads completely, but still nada!!


<Script language='Javascript'>var rndNum = Math.floor(Math.random() * 10000);eval("var CDTDate" + rndNum + " = 'December 19, 2002 null:null:null AM EST';");document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");document.writeln('<font size=2 color=red>Countdown to a Grand Xmouse: :Pinkbounc</font><br>');document.writeln("<input type=text value='' size=40 name='WrittenByJamesMVenglarikII'>");document.writeln("</form>");if (theFunction) theFunction += "var d = new Date();";else var theFunction = "var d = new Date();";theFunction += "var c = new Date('" + eval("CDTDate" + rndNum) + "');";theFunction += "var diff = (c - d)/1000;";theFunction += "var days = Math.floor(diff / 86400);";theFunction += "var rem = diff - (days * 86400);";theFunction += "var hours = Math.floor(rem / 3600);";theFunction += "rem = rem - (hours * 3600);";theFunction += "var minutes = Math.floor(rem / 60);";theFunction += "rem = rem - (minutes * 60);";theFunction += "var seconds = Math.floor(rem);";theFunction += "if ((days < 0) | (hours < 0) | (minutes < 0) | (seconds < 0)) ";theFunction += "var out = 'Playing w/ Santa Mickey!';";theFunction += "else ";theFunction += "var out = ' ' + days + ' days ' + hours + ' hrs. ' + minutes + ' mins. ' + seconds + ' secs.';";theFunction += "document.forms.CDTform" + rndNum + ".elements.WrittenByJamesMVenglarikII.value = out;";setInterval(theFunction, 1000);</Script>
Thanks for your help!
 
When you generated the Countdown Timer did you:
1. Check that the timer worked by using the 'Preview' button? Let me know if it worked in the preview, but didn't work on a post.
2. Make sure to wait until the page completely loads before clicking on anything?
3. Filled in all date and time information?

- Jim
 
Is there anything in the drop-down boxes for the time?

Also, which browser and version are you using?

- Jim
 

Ok, I think I've fixed the problem with the time, but I'm going to have to work a little more on why the drop-downs don't appear to be populated at first.

If the drop-downs don't work initially, just reload the page for now.

Hope this fixes the problem you were having.

- Jim
 












Receive up to $1,000 in Onboard Credit and a Gift Basket!
That’s right — when you book your Disney Cruise with Dreams Unlimited Travel, you’ll receive incredible shipboard credits to spend during your vacation!
CLICK HERE











DIS Facebook DIS youtube DIS Instagram DIS Pinterest DIS Tiktok DIS Twitter DIS Bluesky

Back
Top