Help needed, please...

PNO4TE

I used to be the DIS Musician and a Jamborini...
Joined
Jul 14, 2001
Messages
31,531
I have followed the instructions for creating my countdown and it does not seem to be working correctly. I keep getting script errors when any page loads that has a post of mine on it. Help! ... and thanks!
 
PNO4TE:

Can you try pasting the code directly into a reply on this thread? Don't put it in your signature just yet. I'll take a look at it and try to see what's going on.

- Jim
 
I seemed to have no signature nor code to copy on my profile page! Did you remove it? It was there last night :-)

I redid the countdown to see what happens this a.m. and I have pasted it here...
 
Let's try the pasting thing again!
 

Ok, I think I've figured it out (and it's not anything you are doing wrong). It has to do with the single quote you are using in the word "Kristin's". I'll try to get it working this evening, but after I do, you'll have to regenerate your script. I'll let you know here when I'm able to get it working.

Thanks for being patient. :)

- Jim
 
PNO4TE: Ok, I think I've fixed the problem. Here's my try at the same post you were making after I changed the code in the script generator:

Code:
<Script language='Javascript'>
<!--
//Countdown Timer v2.0
//Written by: James M. Venglarik, II
//Created on: March 28, 2002
var rndNum = Math.floor(Math.random() * 10000);
eval("var CDTDate" + rndNum + " = 'August 22, 2002 12:00:00 PM EDT';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>Countdown to Kristin\\'s 16th Birthday Trip</font><br>');
document.writeln("<input type=text value='' size=40 name='countdown'>");
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 tzo = (c.getTimezoneOffset() - d.getTimezoneOffset()) * 60;";
theFunction += "var diff = ((c - d)/1000) + tzo;";
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 = 'And they\\\'re off!';";
theFunction += "else ";
theFunction += "var out = ' ' + days + ' days ' + hours + ' hrs. ' + minutes + ' mins. ' + seconds + ' secs.';";
theFunction += "document.forms.CDTform" + rndNum + ".elements.countdown.value = out;";
setInterval(theFunction, 1000);
//-->
</Script>

Go Ahead and delete the other code from this thread and try regenerating the code.

Let me know how it goes... :)

- Jim
 
By Jove, I think we've got it! Thanks a bunch...
 















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







New Posts







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

Back
Top