成都创新互联网站制作重庆分公司

判断元素是否可见的jQuery新窗口打开图片

function judgeShowOrHide(){  
    alert($("#id").is(':visible')); //判断是否显示  显示:true 隐藏:false  
    if($("#id").is(':hidden')){  
        alert("隐藏了");  
        //处理业务  
    }else{  
        alert("显示");             
               //处理业务  
        }  
}
    function targetBigImage() {       
     jQuery('.x_imgnew a').each(function(index){        
      if (jQuery(this).is(':visible')) {          
            window.open(jQuery(this).find('img').attr('src'));   
      }       
        });  
       }

网站名称:判断元素是否可见的jQuery新窗口打开图片
分享网址:http://cxhlcq.com/article/gooecj.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部