i have a function countDown()
function countDown(minit,second)
{
.......
counter=setTimeout("countDown()", 1000);
}
the problem is how to put parameter into function ?
any bracket or comma want to add in "minit,second" ?
something like this:
counter=setTimeout("countDown(minit,second)", 1000);
set parameter problem
Moderator: General Moderators
i make it more clear at here.
actually i ask about java script thing.
In problem here, i dunno how to set parameter into function :
counter=setTimeout("countDown()", 1000);
actually i ask about java script thing.
Code: Select all
function countDown(me,se ){
countDownTime = se ;
++countDownTime;
if (countDownTime >=10){
countDownTime=countDownInterval;
clearTimeout(counter)
Tminit++
countDown() ;
return
}
counter=setTimeout("countDown()", 1000); ----- problem here
}counter=setTimeout("countDown()", 1000);