document.writeln(""); document.writeln("
"); document.writeln("
"); document.writeln(" "); document.writeln("
"); document.writeln("
"); window.setinterval(function(){ //console.log("test") current_index++; if(current_index==$(".tgimg").length){current_index=0} $(".tgimg").addclass("hide").eq(current_index).removeclass("hide") $(".tgcontent").addclass("hide").eq(current_index).removeclass("hide") $(".tgradio").removeclass("act").eq(current_index).addclass("act") },5000); $(".leftctrl").click(function(){ current_index--; if(current_index<0){ current_index=$(".tgimg").length-1; } $(".tgimg").addclass("hide").eq(current_index).removeclass("hide") $(".tgcontent").addclass("hide").eq(current_index).removeclass("hide") $(".tgradio").removeclass("act").eq(current_index).addclass("act") }) $(".rightctrl").click(function(){ current_index++; if(current_index>$(".tgimg").length-1){ current_index=0; } $(".tgimg").addclass("hide").eq(current_index).removeclass("hide") $(".tgcontent").addclass("hide").eq(current_index).removeclass("hide") $(".tgradio").removeclass("act").eq(current_index).addclass("act") })