✦ Verified product
COMHOMA® Wood King Bed Frame with Headboard, Type-C & USB BF002
USD 199.99
Size
COMHOMA
Verified independent store
→
< > < > < > // = 800 && screen.width >= screen.height) { $(".box>.ph_bf").remove() }else { $(".box>.pc_bf").remove() } }); var prevIndex = 0; var curIndex = 0; $(".next").click(fun
ction() { var box=$(this).parent(); prevIndex=box.attr("previndex"); curIndex=box.attr("curindex"); //.is(":animated"):正在执行动画返回true,没在执行动画返回false if (box.children("img").eq(curIndex).is(":animated")) { return; } if (curIndex >= box.children("img").length - 1) { curIndex = 0; } else { curIndex++ } tab(box); prevIndex = curIndex; box.attr("previndex",prevIndex); box.attr("curindex",curIndex); }); $(".prev").click(function() { var box=$(this).parent(); prevIndex=box.attr("previndex"); curIndex=box.attr("curindex"); if (box.children("img").eq(curIndex).is(":animated")) { return; } if (curIndex prevIndex) { box.children("img").eq(prevIndex).animate({ left: -100+"%" }, 500) box.children("img").eq(curIndex).css("left", "100%").animate({ left: 0 }, 500) } else { box.children("img").eq(prevIndex).animate({ left: 100+"%" }, 500) box.children("img").eq(curIndex).css("left", "-100%").animate({ left: 0 }, 500) } //切小点; $(".LB"+LBIdx+" .nav li").eq(curIndex).addClass("on").siblings().removeClass() } // ]]>