Gossamer Forum
Home : General : Chit Chat :

Re: [LoisC] Old Script - New problem

Quote Reply
Re: [LoisC] Old Script - New problem In reply to
Below is where the problem starts
=========================

var diff = arr.getTime() - now.getTime();
var days = Math.floor (diff / (1000 * 60 * 60 * 24));
document.write(holidaystring)
if (days> 1) {
if (days <when) {
document.write(days+1 + " days until " + desc);
}}
else if (days == 1) {
document.write("<center><B><font color='blue' size='2'>")
document.write ("Only two days<br> until " + desc);
}
else if (days == 0) {
document.write("<center><B><font color='red' size='2'>")
document.write ("Tomorrow is " + desc);
}
else if (days == -1) {
document.write("<center><B><font color='red' size='2'>")
document.write ("It's " + desc + "!");
}
else { if (days> after) {


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Subject Author Views Date
Thread Old Script - New problem SandraR 11540 May 10, 2006, 10:14 AM
Thread Re: [SandraR] Old Script - New problem
Watts 11396 May 10, 2006, 1:30 PM
Thread Re: [Watts] Old Script - New problem
Watts 11339 May 10, 2006, 1:44 PM
Thread Re: [Watts] Old Script - New problem
SandraR 11290 May 10, 2006, 2:25 PM
Post Post deleted by mkp
mkp 11199 May 11, 2006, 7:38 AM
Thread Re: [SandraR] Old Script - New problem
LoisC 11238 May 27, 2006, 5:15 PM
Thread Re: [LoisC] Old Script - New problem
SandraR 11193 May 30, 2006, 9:46 AM
Thread Re: [SandraR] Old Script - New problem
dan 11226 May 30, 2006, 3:25 PM
Thread Re: [dan] Old Script - New problem
SandraR 11270 May 30, 2006, 4:32 PM
Thread Re: [SandraR] Old Script - New problem
dan 11181 May 30, 2006, 6:02 PM
Thread Re: [dan] Old Script - New problem
SandraR 11285 May 30, 2006, 6:12 PM
Thread Re: [SandraR] Old Script - New problem
dan 11224 May 30, 2006, 6:16 PM
Post Re: [dan] Old Script - New problem
SandraR 11208 Jun 1, 2006, 10:54 AM