Code: Select all
<script> var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if (width >= 1024) { document.write('<scr'+'ipt type="text/javascript" src="//liveadexchanger.com/a/display.php?r=XXXXX"></scr'+'ipt>'); } else if ((width < 1024) && (width > 600)) { document.write('<scr'+'ipt type="text/javascript" src="//liveadexchanger.com/a/display.php?r=CCCCCC"></scr'+'ipt>'); } else { document.write('<scr'+'ipt type="text/javascript" src="//liveadexchanger.com/a/display.php?r=DDDDD"></scr'+'ipt>'); } </script>