This code here works but I’d like to add a couple features.
First and for most, this will collapse whether the user is using
my menu or not, I’d like to set up a onHover event to delay or
reset the countdown. Another one I would like to issue is that
since this function ends at 15*1000+1 (interval is 5
if the user reopens the menu, the countdown is already finished,
I would like to reset it for another 15sec. Anyone want to help
me out? ?
[code]
var myInterval = window.setInterval(function (a,b) {
extendContract();
},15*1000);
window.setTimeout(function (a,b) {
clearInterval(myInterval);
},15*1000+1);
with a bodyload of “”extendContract();
Thanks Guys!