✦ Verified product
Vanity Desk with Mirror and Lights
USD 149.99
GTPlayer Gaming Chair US
Verified independent store
→
.pcA{display: block!important;} .phA{display: none!important;} #CKTA>div{position: relative} .YouTubeVideo{width: 100%;height: 660px;display: block} @media screen and (max-width:80
0px) { .pcA{display: none!important;} .phA{display: block!important;} .YouTubeVideo{width: 100%;height: 190px} } < > < > // = 800 && screen.width >= screen.height) { $(".box>.ph_bf").remove() }else { $(".box>.pc_bf").remove() } }); var prevIndex = 0; var curIndex = 0; $(".next").click(function() { var box=$(this).parent(); prevIndex=box.attr("previndex"); curIndex=box.attr("curindex"); //.is(":animated"):正在执行动画返回true,没在执行动画返回false if (box.children(".LBimg").eq(curIndex).is(":animated")) { return; } if (curIndex >= box.children(".LBimg").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(".LBimg").eq(curIndex).is(":animated")) { return; } if (curIndex prevIndex) { box.children(".LBimg").eq(prevIndex).animate({ left: -100+"%" }, 500) box.children(".LBimg").eq(curIndex).css("left", "100%").animate({ left: 0 }, 500) } else { box.children(".LBimg").eq(prevIndex).animate({ left: 100+"%" }, 500) box.children(".LBimg").eq(curIndex).css("left", "-100%").animate({ left: 0 }, 500) } //切小点; $(".LB"+LBIdx+" .nav li").eq(curIndex).addClass("on").siblings().removeClass() } // ]]>