Forums
Home / Plugin: Easy Google Adsense and Banner Ads Manager - AdsforWP / Random banner
(@xkurts)
4 years, 5 months ago
Is it possible to set up one custom banner with Javascript code? Like this for random imagem:
<script type=”text/javascript”> var images = [], index = 0; images[0] = ‘‘; images[1] = ‘‘; index = Math.floor(Math.random() * images.length); document.write(images[index]); </script>