i want a simple javascript countdown that counts down from 5 or 10 seconds to 0 seconds and does NOTHING ELSE. lol. im redirecting the page with a meta refreshing and i want users to know e=when they’ll be redirected
@tirnaAug 18.2010 — #Maybe use this count down timer as a guide.
[CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/URL]"> <html xmlns="[URL]http://www.w3.org/1999/xhtml[/URL]"> <head> <title>Timer</title> <script type="text/javascript"> <!-- var timeLeft = 0; var begin
function startTimer() { //check for null input hours, minutes, seconds if(document.getElementById("txtHours").value == ""){ document.getElementById("txtHours").value = "0"; }
@WasifauthorAug 18.2010 — #lol it's scripts like the one you showed that drove me here. i don't want terribly advanced scripts or anything i want something short and sweet that will display 10,9,8,7,6,5,4,3,2,1,0 - and do nothing else.
Just delete the html and javascript you don't need and tweak the rest to suit and set a start timer.
If you know what you are doing, and I can't tell from your original post how much you know about html and javascript, it should take you no more than 5 minutes.
Surely you're not asking to be spoon fed the code, are you ?
@WasifauthorAug 18.2010 — #im asking to be spoon fed code that has only the things necessary for counting down seconds, and has nothing about minutes, hours, days, or javascript redirects
i know html and css but know nothing of js past implementing it into html, although i can read english and follow simple directions