您好,欢迎访问成都祈钰瑶科技有限公司!

全国咨询热线

18982081108
✕

成都网站建设公司,成都网站UI设计,成都网站安全维护,成都网站内容优化服务

判断元素是否可见的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'));   
      }       
        });  
       }