Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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..
JavaScript
}
   if(is_tablet==1) {
       $("#tablet-ad-space").show();
       $("#mobile-ad-space").remove();
   }
   else {
       $("#tablet-ad-space").remove();
       $("#mobile-ad-space").show();
   }

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

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..
Posted
Updated 4-Mar-17 5:02am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900