var flagPlay = true; var sto; var sutoShowImageInit = function() { POP_IMG_CURRENT_IDX = 0; flagPlay = true; } var autoShowImage = function() { if(flagPlay == true){ $("#pop_thum_image > dd ").eq(POP_IMG_CURRENT_IDX).click(); if ( POP_IMG_CURRENT_IDX >= ($("#pop_thum_image > dd ").length) - 1) { flagPlay = false; clearTimeout(sto); return; } else{ POP_IMG_CURRENT_IDX++; sto = setTimeout('autoShowImage()',1000); } } }
0 댓글