|
|
@ -13,11 +13,11 @@ $(function(){ |
|
|
|
$(".model-bg").each(function (i) { |
|
|
|
$(".model-bg").each(function (i) { |
|
|
|
var _that=$(this); |
|
|
|
var _that=$(this); |
|
|
|
_that.find(".nextPage").click(function () { |
|
|
|
_that.find(".nextPage").click(function () { |
|
|
|
console.log(i); |
|
|
|
var key=i-1; |
|
|
|
_that.addClass("unchoose"); |
|
|
|
_that.addClass("unchoose"); |
|
|
|
$(".model-bg").eq(i+1).removeClass("unchoose"); |
|
|
|
$(".model-bg").eq(i+1).removeClass("unchoose"); |
|
|
|
$('#side-menu .av').eq(arr[i]).addClass('boo'); |
|
|
|
$('#side-menu .av').eq(arr[i]).addClass('boo'); |
|
|
|
$('#side-menu .av').eq(arr[i-1]).removeClass('boo'); |
|
|
|
$('#side-menu .av').eq(arr[key]).removeClass('boo'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
_that.find(".Previous").click(function () { |
|
|
|
_that.find(".Previous").click(function () { |
|
|
|
_that.addClass("unchoose"); |
|
|
|
_that.addClass("unchoose"); |
|
|
|