平板电脑或手机中的show popunder出错 [英] Error with show popunder in tablet or mobile

查看:95
本文介绍了平板电脑或手机中的show popunder出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的模板中,我提供了一个工具,用于在平板电脑设备中显示pop-under,而在其他设备(手机,桌面等)时显示其他pop-under

我测试过完美的横幅,但当我尝试使用pop-under不起作用,我不知道如何解决它,如果有人可以帮助我,谢谢..

In my template I include a tool to show a pop-under when it is in tablet devices and other pop-under when it is other devices( cellphone, desktop,etc )
I tested and work perfect with banner, but when I try to use pop-under does not work, and I don';t know how fix it, If somebody can help me, thanks..

}
   if(is_tablet==1) {
       $("#tablet-ad-space").show();
       $("#mobile-ad-space").remove();
   }
   else {
       $("#tablet-ad-space").remove();
       $("#mobile-ad-space").show();
   }



-------------------------- -------------------------------------



这是我包含横幅和popunder的地方



<! - 额外广告块|移动 - 从这里开始 - >


---------------------------------------------------------------

And this is where I include the banner and popunder

<!-- Extra Ad block | Mobile - Starts here -->









<! - 额外广告块|移动 - 在此结束 - >

<! - 额外广告块|平板电脑 - 从这里开始 - >


<!-- Extra Ad block | Mobile - Ends here -->
<!-- Extra Ad block | Tablet - Starts here -->












<! - 额外广告块|平板电脑 - 在这里结束 - >



我尝试过:



我试图改变但不起作用,只能使用横幅,但是当我在平板电脑或手机中包含一个弹出窗口[


<!-- Extra Ad block | Tablet - Ends here -->

What I have tried:

I tried to change but does not work, only work with banners, but when i include a pop[under this shot in tablet or mobile..

推荐答案

#tablet-ad-space)。show();
("#tablet-ad-space").show();


#mobile-ad-space)。remove();
}
else {
("#mobile-ad-space").remove(); } else {


#tablet-ad-space)。remove();
("#tablet-ad-space").remove();


这篇关于平板电脑或手机中的show popunder出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆