hi, all. i'm new 2 js but im makin progress. my problem is that i hav an array that contains 10 numbers, like this:
var y=new Array(10,9,8,7,6,5,4,3,2,1,0)
my for loop displays each number consecutively starting from 10, like this:
{color red]function countDown(kk) {
window.status =y[kk];
if(kk !=y.length - 1) {
kk++; setTimeout("countDown(" + kk + "
;", 1000);[/color]
i'm sure u can c what i'm doin with the script.
what i want 2do is be able 2 start at any number say 50 and end at 1 without having to put 50 numbers in the array.i'm hoping there is an easier way.
i would appreciate all the help you can give.
thanx
-Mon3y is the r00t of all evil and every man needs roots-
var y=new Array(10,9,8,7,6,5,4,3,2,1,0)
my for loop displays each number consecutively starting from 10, like this:
{color red]function countDown(kk) {
window.status =y[kk];
if(kk !=y.length - 1) {
kk++; setTimeout("countDown(" + kk + "
i'm sure u can c what i'm doin with the script.
what i want 2do is be able 2 start at any number say 50 and end at 1 without having to put 50 numbers in the array.i'm hoping there is an easier way.
i would appreciate all the help you can give.
thanx
-Mon3y is the r00t of all evil and every man needs roots-