q8ygirl

Greenhorn
+ Follow
since Jul 08, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by q8ygirl

i posted the code but it dosent show here why???
< textarea name="S1" rows="10" cols="40">< script language="JavaScript">
< br>
window.setTimeout("timer()",1000,"JavaScript"
< br>
function timer()
< br>
{
< br>
var s = document.all.item("jumpTime" .innerText;
< br>
/* alert(s); */
< br>
var time = (s);
< br>
time = time - 1;
< br>
document.all.item("jumpTime" .innerText = time;
< br>
if (time > 0) {
< br>
window.setTimeout("timer()",1000,"JavaScript" ;
< br>
}
< br>
}
< br>
< /script>
(edited by Cindy to put spaces in JavaScript so that it would not execute)

[This message has been edited by Cindy Glass (edited July 09, 2001).]
22 years ago
sorry for that, here is the code
< script language="JavaScript">

window.setTimeout("timer()",1000,"JavaScript")

function timer()

{

var s = document.all.item("jumpTime").innerText;

/* alert(s); */

var time = (s);

time = time - 1;

document.all.item("jumpTime").innerText = time;

if (time > 0) {

window.setTimeout("timer()",1000,"JavaScript");

}

}

< /script>
[This message has been edited by Cindy Glass (edited July 09, 2001).]
22 years ago
hi can any one help me with this code
i need to know what each line does exactly
< script language="JavaScript">

window.setTimeout("timer()",1000,"JavaScript")

function timer()

{

var s = document.all.item("jumpTime").innerText;

/* alert(s); */

var time = (s);

time = time - 1;

document.all.item("jumpTime").innerText = time;

if (time > 0) {

window.setTimeout("timer()",1000,"JavaScript");

}

}

< /script>
(edited by Cindy to add spaces so that it will not execute)
[This message has been edited by Cindy Glass (edited July 09, 2001).]
22 years ago