Forum Moderators: open
// initialize
var timerval;
var c=0;
timerval = setInterval("timedCount()",1000);
function timedCount()
{
document.getElementById('txt').value =c;
c=c+1;
if (c == 1){ requesthx('../callhx.php'); }
if (c == 2){ requesthx('../dispmessages.php'); }
if (c == 4){ requesthx('../getnames.php'); }
if (c == 5){ requesthx('../topbars.php'); }
if (c == 6){ requesthx('../showroads.php'); }
if (c >= 7){ c=0;}
}
//on mouseover
function timeroff(){
clearInterval(timerval);
document.getElementById('txt').value =0;
c=0;
}
// on mouseout
function timeron(){
timerval = setInterval("timedCount()",1000);
}
watching the 'txt' field at first it reads 1,2,3,4,5 ect...
then mouseover reads 0
then mouseout reads 1,3,5,7 ect...
?
any help anyone?