I was able to have a rotating banner by using the following code in the HTML:
Code: Select all
<script type="text/javascript">
function banner() { } ; b = new banner() ; n = 0
b[n++]= "<a rel='nofollow' href='www.domain.com'><img src='www.domain.com/image1.jpg'></a>"
b[n++]= "<a rel='nofollow' href='www.domain.com'><img src='www.domain.com/image2.jpg'></a>"
i=Math.floor(Math.random() * n) ;
document.write( b[i] )
</script>
I selected the HTML, in its Flexbox I added 1 value for Flex shrink, but it was not applied to the images inside the html code.
All I want is to have a rotating banner, inside my flex container/grid.
Is there a way to make it possible?
PS - by rotating i mean display one banner at a time, randomly.
Thanks!