我用javascript编写了一个图像滑块脚本,但问题是滑块功能只运行一次。我想永远运行滑块功能。我尝试使用以下代码循环该函数:
function abc(){ //Function for image slider
//Slider codes here
}
for(count = 0; count <= 6; count++){ //Forever loop
count = 0;
abc(); //Call the slider function
if(count == 0){
abc(); //Return call the function
}
}else{
}
Run Code Online (Sandbox Code Playgroud)
请告诉我脚本中的问题是什么?