Countdown test

Removed from sig.
Testing within a post instead.

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 + " = 'April 30, 2002 5:00:00 PM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=red>Leaving work in</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 = 'Gone for the day.';";
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>
 
Definately the countdown code.

Trying TABLE now

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 + " = 'April 30, 2002 5:00:00 PM EST';");
document.writeln("<table width=80><tr><TD><form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=red>Leaving work in</font><br>');
document.writeln("<input type=text value='' size=40 name='countdown'>");
document.writeln("</form></td></tr></table>");
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 = 'Gone for the day.';";
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>
 


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 + " = 'April 30, 2002 5:00:00 PM EST';");
document.writeln("<table width='80%' border=2><tr><TD><form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=red>Leaving work in</font><br>');
document.writeln("<input type=text value='' size=40 name='countdown'>");
document.writeln("</form></td></tr></table>");
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 = 'Gone for the day.';";
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>
 
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 + " = 'april 31,2002 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</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 = 'ffffff';";
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>
 


<table border=2 width="80%"><TR><TD>
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 + " = 'May 30,2002 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</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 = 'ffffff';";
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>
</TD</TR></TABLE>
 
Hi JC.

Just testing that countdown code. It's removing the right border and also extending the width of the thread. The last one I posted seems to be better. The first ones are using the original code as instructed. The last one uses a table to try to control that width and also to have the far right border. I am now going to try a table without the border (I used it to see what the extents were of that CODE box.

Newbie? Well, yes. Compare me to everyone else here with regard to post counts.

TABLE at 300 pixels now (80% did not look good), no border :
<table width='300'><TR><TD>
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 + " = 'May 30,2002 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
All better now.

The thread width should now return to normal width if using a table at 300 pixels with the JS code within it.

Permission to try this now in my sig JC.

It would have been easier to just use my countdown applet from before. ;)
 
Trying to line it up (right border) with the previous thread.

Input field size now at 30 chars, table at 80%

<TABLE width='80%'><TR><TD>
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 + " = 'May 30,2002 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</font><br>');
document.writeln("<input type=text value='' size=30 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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
Again, trying to line it up (right border) with the previous thread.

Input field size now at 40 chars, table at 80%

<TABLE width='80%'><TR><TD>
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 + " = 'May 30,2002 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
Again, trying to line it up (right border) with the previous thread.

Input field size now at 40 chars, table at 70%, longer date

<TABLE width='70%'><TR><TD>
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 + " = 'May 30,2004 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
Again, trying to line it up (right border) with the previous thread.

Input field size now at 30 chars, table at 80%, longer date again

<TABLE width='70%'><TR><TD>
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 + " = 'May 30,2004 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</font><br>');
document.writeln("<input type=text value='' size=30 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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
Waiting for your permission JC to use this in my sig.

The code was changed to a 30 character input field instead of 40. This length appears to make a thread's uneven as posts with countdowns extend the right side. The rest of the code was untouched. I also wrap the code within an HTML table using 80% for width as this puts the right border back in that was missing when used without a table. 80% seems to align it better but that could just be my desktop settings here.

Here is a sample of what it will look like:

<TABLE width='80%'><TR><TD>
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 + " = 'May 30,2004 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</font><br>');
document.writeln("<input type=text value='' size=30 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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
StormAlongBay: The only problem I've seen with changing the character input field from 40 to 30 is that it cuts off part of the text in Netscape (at least it does in 6.2.2).

Can you make it a couple of characters wider and still get the same result?

- Jim
 
Aligning to previous post. Let's see how this looks.

Input field now set to 35 characters, using 80% table width.


<table width="80%"><TR><TD>
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 + " = 'april 30,2004 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</font><br>');
document.writeln("<input type=text value='' size=35 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 = 'ffffff';";
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>
</TD></TR></TABLE>
 
and back to 30 now for comparisons.

<table width='80%'><TR><TD>
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 + " = 'april 30,2004 1:00:00 AM EST';");
document.writeln("<form name='CDTform" + rndNum + "' action='Javascript:void(0);'>");
document.writeln('<font size=2 color=darkblue>dddd</font><br>');
document.writeln("<input type=text value='' size=30 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 = 'ffffff';";
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>
</TD></TR></TABLE>
 

GET A DISNEY VACATION QUOTE

Dreams Unlimited Travel is committed to providing you with the very best vacation planning experience possible. Our Vacation Planners are experts and will share their honest advice to help you have a magical vacation.

Let us help you with your next Disney Vacation!











facebook twitter
Top