jQuery实现首页图片淡入淡出效果的方法(3)

// 判断img轮转,实现a跳转 setInterval(function(){ $("#imgcontainer a").each(function(i){ var img = $(this).children("img"); var op = img.css("opacity"); if(op>0){ img.css("z-index","100"); $(this).css("z-index","100"); }else{ img.css("z-index","0"); $(this).css("z-index","0"); } }) },100);

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgdspf.html