Javascript Countdown Javascript Timer Count Down Code Script Sample Tutorial Guide

RegisterLogin
Javascript Countdown Javascript Timer Count Down Code Script Sample Tutorial Guide
Post Description: Javascript Countdown Javascript Timer Count Down Code Script Sample Tutorial Guide
Tags: javascript, countdown, javascript, , timer, count, down, code, script, sample, tutorial, guide
This Post Was Posted On Sep 22, 2009 By wallpaperama #63

This simple tutorial code is to show you how javascript can help you display a simple timer, you can get more complicated even if you want to display dates.

HELP! - If you've found this script helpful, we would appreciate a link to wallpaperama.com. Linking to wallpaperama will make script like this more available to poeple who are looking for help, just like you. Thanks

Script Code at Wallpaperama.com

Here is the code i use:

<p>This simple tutorial code is to show you how javascript can help you display a simple timer, you can get more complicated even if you want to display dates.</p> <h1 align="center"> <script language="JavaScript"> var countDownInterval=45; var countDownTime=countDownInterval+1; function countDown(){ countDownTime--; if (countDownTime <=0){ countDownTime=countDownInterval; clearTimeout(counter) window.location="http://www.wallpaperama.com"; return } if (document.all) //if IE 4+ document.all.countDownText.innerText = countDownTime+" "; else if (document.getElementById) //else if NS6+ document.getElementById("countDownText").innerHTML=countDownTime+" " else if (document.layers){ //CHANGE TEXT BELOW TO YOUR OWN document.c_reload.document.c_reload2.document.write('Launching in <b id="countDownText">'+countDownTime+' </b> seconds') document.c_reload.document.c_reload2.document.close() } counter=setTimeout("countDown()", 1000); } function startit(){ if (document.all||document.getElementById) //CHANGE TEXT BELOW TO YOUR OWN document.write('Launching in <b id="countDownText">'+countDownTime+' </b> seconds') countDown() } if (document.all||document.getElementById) startit() else window.onload=startit setTimeout("location.href='http://www.wallpaperama.com'" , t) </script> </h1> <p align="left">HELP! - If you've found this script helpful, we would appreciate a link to wallpaperama.com. Linking to wallpaperama will make script like this more available to poeple who are looking for help, just like you. Thanks </p> <p align="center">Script Code at <a href="http://www.wallpaperama.com">Wallpaperama.com </a></p>
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Alyssa
#3436 1
any way someone could assist me in getting this java script for a
countdown counter into my built in html web builder. i contacted the
web site where i got the counter info and he says my web builder won't allow java.
i am not versed in either one but have learned a bit of html from working
with it. here is the code for my counter. actually i can get it added, but it
is smaller than what theirs is and it won't count down at all. thanks!
<script language="javascript" src="prolife.org.nz/count/countdown3.js" type="text/javascript"></script>
Feb 08, 2010 Reply Report abuse
sata
#64 2
can you change the seconds countdown javascript
Jul 12, 2009 Reply Report abuse
waler
#52 3
can you teach me more about javascript timer document.getElementById
Jul 10, 2009 Reply Report abuse
tulier
#51 4
very interseting

i never knew i caould do this
Jul 10, 2009 Reply Report abuse
Leave Your Comments...
©2011 Broken Deals - Mon Dec 19, 2011 2:15 am
Powered by: Webune Forums V3