
js代码
<script>
$(function(){
var lb_cur = 1,
t = 1;
function showLimitBuyProducts(){
if(lb_cur < 1){
lb_cur = 4;
}
else if(lb_cur > 4){
lb_cur = 1;
}
var products = $("#limitbuy .products").hide().eq(lb_cur-1).show(),
ta = products.find("textarea");
}
//左边点击
$("#tggg_zuojian").click(function(){
lb_cur--;
showLimitBuyProducts();
});
//右边点击
$("#tggg_youjian").click(function(){
lb_cur++;
showLimitBuyProducts();
});
//手风琴样式
$(".theatre-item").mouseover(function(){
if($(this).index()==5){
$(this).addClass('aa');
$(this).siblings().addClass('bb');
$(this).siblings().eq(0).removeClass('bb');
//$('.theatre-item:eq(0)').removeClass('bb');
}else{
//console.log($(this).index());//调试jsconsole.log()获取li的下标
$(this).addClass('aa');
$(this).siblings().addClass('bb');
$(this).next().attr('class','theatre-item');
}
})
$(".theatre-item").mouseout(function(){
$(this).attr('class','theatre-item');
$(this).siblings().removeClass('bb');
});
});
</script> *
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
