var arr=['./images/1.jpg','./images/2.jpg','./images/3.jpg'];
var k=0;
var t;
function changeSrc(){
k++;
if(k>2){
k=0;
}
var path=arr[k];
$("#img1 img").attr('src',path);
$("#img1 div").css('background','');
$("#img1 div:eq("+k+")").css('background','orange')
慕侠2389804
宝慕林4294392
相关分类