List Info

Thread: Do you know the java script for a count down bar timer which can be placed on the state bar.




Do you know the java script for a count down bar timer which can be placed on the state bar.
user name
2006-04-18 13:26:18
This script will give you a countdown. Notice that I've
added a line to it
"window.status = '00:00.0' + g_iCount;" which
is what displays the timer on
the status bar.

Rob.


<!-- THREE STEPS TO INSTALL NUMBER COUNTDOWN:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the onLoad event handler into the BODY tag
  3.  Put the last coding into the BODY of your HTML
document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML
document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online
at -->
<!-- The JavaScript Source!! http://javascript.inte
rnet.com -->
<!-- Ben (BassClar89aol.com) -->

<!-- Begin
<!--
var g_iCount = new Number();

// CHANGE THE COUNTDOWN NUMBER HERE - ADD ONE TO IT //
var g_iCount = 11;

function startCountdown(){
       if((g_iCount - 1) >= 0){
               g_iCount = g_iCount - 1;
               numberCountdown.innerText = '00:00.0' +
g_iCount;
               window.status = '00:00.0' + g_iCount;
               setTimeout('startCountdown()',1000);
       }
}
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your
BODY tag  -->

<BODY onLoad="startCountdown()">

<!-- STEP THREE: Copy this code into the BODY of your
HTML document  -->

<font face="Digital Readout Upright"
color="blue" size="7">
<div align="center"
id="numberCountdown"></div>
</font>

<p><center>
<font face="arial, helvetica"
size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.c
om">The JavaScript
Source</a></font>
</center><p>

<!-- Script Size:  1.33 KB -->

-----Original Message-----
From: 1stJavaScript@yahoogroups.com
[mailto:1stJavaScript@yahoogroups.com] On
Behalf Of ycentury
Sent: 18 April 2006 14:21
To: 1stJavaScript@yahoogroups.com
Subject: [1stJavaScript] Do you know the java script for a
count down bar
timer which can be placed on the state bar.

Hi, dear Guys,

Do you know how to write a java script for a count down bar
timer which can
be placed on the state bar.

Regards,
YC Lee


************************************************************
***********************
Any opinions expressed in email are those of the individual
and not necessarily those of the company. This email and any
files transmitted with it are confidential and solely for
the use of the intended recipient or entity to who they are
addressed. It may contain material protected by
attorney-client privilege. If you are not the intended
recipient, or a person responsible for delivering to the
intended recipient, be advised that you have received this
email in error and that any use is strictly prohibited.
Random House Group +44 (0) 20 7840 8400.
http://www.randomhouse.c
o.uk
http://www.booksat
transworld.co.uk 
http://www.kidsatr
andomhouse.co.uk
************************************************************
***********************



For a quick response, your message should include,
 
- A copy of the code
- A copy of any error messages
- A description of what you're trying to achieve
- A description of what's actually happening
http://www.trans4mind.com/personal_developmen
t/HTMLGuide/index.html  For HTML
http://www.trans4mind.com/personal_developme
nt/JavaScript/index.html For JavaScript
You can also download the JavaScript and HTML tutorials
(Nearly 2.5 megabytes.)
A 30 day version of jsEditor is available for free download
at
http://www.trans4mind.com/personal_devel
opment/JavaScript/freeEditor.htm
--------------------------
FREE zip/unzip program:
http://www.trans4mind.com/personal_development/z
ipper/index.html
--------------------------OR go to and change your settings:
http://g
roups.yahoo.com/group/1stJavaScript/
List owner:  1stJavaScript-owner@yahoogroups.com 


://groups.yahoo.com/group/1stJavaScript/
List owner:  1stJavaScript-owner@yahoogroups.com 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/1stJavaScript/

<*> To unsubscribe from this group, send an email to:
    1stJavaScript-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )