This is the rotation script for images
<script> var image = new Array (); image = "http://placehold.it/20"; image = "http://placehold.it/20"; image = "images/banner3.png"; image = "images/banner4.png"; var size = image.length var x = Math.floor(size*Math.random()) $('#banner1').attr('src',image[x]); </script>
and this is the output to display
Testing it here to see if the script works, and it does http://jsfiddle.net/EpnTH/
but on my website, it's not working.
I am using Simple Custom CSS and JS plugin for the script and img tag placed in the page, the location of my choice, but it's not working.
This code for fixed 1 image is working without issues
<a href="https://wordpress.stackexchange.com"> <img src="images/banner3.png""> </a>
I am here looking for any suggestions that could solve this problem.