kerioni
06-04-2004, 03:42 AM
Does anyone know the code to have a countdown thing. Like an automated one?
|
View Full Version : Count Down Thingy kerioni 06-04-2004, 03:42 AM Does anyone know the code to have a countdown thing. Like an automated one? Sheila 06-04-2004, 08:28 AM Change parts in bold: <SCRIPT LANGUAGE = "JavaScript"> var now = new Date(); // set this value to the countdown date. var then = new Date("Month Day, Year"); var gap = then.getTime() - now.getTime(); gap = Math.floor(gap / (1000 * 60 * 60 * 24)); document.write(gap); </SCRIPT> day(s) 'til ??? Or maybe you like these better: http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm http://www.dynamicdrive.com/dynamicindex6/dhtmlcount2.htm kerioni 06-04-2004, 04:58 PM Thank You so much!! kerioni 06-04-2004, 05:09 PM huh, do you know how to put an image for like the background? |