PDA

View Full Version : Event Countdown Script



thetowans
02-21-2006, 11:23 AM
http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm.
Re the above, is there a script which displays just the days to the event or can the above be ammended please

jscheuer1
02-22-2006, 12:03 PM
To modify the script to display just days, just find this bit:


//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags
}

and get rid of the red parts.

thetowans
02-27-2006, 11:15 AM
Many thanks for the help