I configure javascript to display the ad network banner code for 728x90 on screens larger than 767. If the screen width is less, then only the banner code 300x250 will be displayed. When I add the code below, it doesnβt show anything on the website and on the mobile phone, just to an empty place. If that helps, I work inside wordpress.
<div class="container">Υ <script> window.onresize = function(){ var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); if ( $(window).width() <= 767) { e9 = new Object(); e9.size = "320x50"; script.src = "http://tags.expo9.exponential.com/tags/ProwrestlingcomMobile/320x50/tags.js"; head.appendChild(script); }else { e9 = new Object(); e9.size = "728x90"; script.src = "http://tags.expo9.exponential.com/tags/ProWrestlingcom/ROS/tags.js"; head.appendChild(script); } } </script> </div>
Original ad code 728x90:
<script type="text/javascript"></script> <script type="text/javascript" src="http://tags.expo9.exponential.com/tags/ProWrestlingcom/ROS/tags.js"></script>
Original ad code 300x250:
<script type="text/javascript"></script> <script type="text/javascript" src="http://tags.expo9.exponential.com/tags/ProwrestlingcomMobile/320x50/tags.js"></script>
source share