I have a javascript code here that on click one pulls one function and on click 2 pulls another function.
How can i make it so after X amoutn of seconds if i am on stop_autoslide function that i can call start_autoslide?
<script>
var count = 0;
function function1(){
stop_autoslide()
count++;
}
function function2(){
start_autoslide();
count = 0;
}
function slideShowClicks(){
if(count ==0){
function1();
}else{
function2();
}
}
</script>