My partner and I have been searching for this since Beta 1 and finally have it working. Perhaps this is or is not the place to put this info, but I thought it would be helpful.
Rotating AD - Code for Widget and Forum Side Block, also works in the advertising blocks
Use HTML Widget and Side Block, enter the below code in the Widget configuration and SideBlock Content:
You can see this in action at www.mycockpit.org
Rotating AD - Code for Widget and Forum Side Block, also works in the advertising blocks
Use HTML Widget and Side Block, enter the below code in the Widget configuration and SideBlock Content:
Code:
<HTML><HEAD> <TITLE>Rotating banners with links</TITLE> <script type="text/javascript"><!-- //Javascript Created by Computerhope http://www.computerhope.com //store the quotations in arrays // images[0] would be image 1, so 0 through 4 = Array(5) images = new Array(5); images[0] = "<div align='center'><a href='http://www.xxxx.com' target='_blank'><img src='http://wwwx/advertising/FSC/xxx-2.gif' border='0' alt='' /></a></div>"; images[1] = "<div align='center'><a href='http://www.xxxxcom' target='_blank'><img src='http://www.xxxx.org/advertising/ACE/xxxxx.jpg' border='0' alt='' /></a></div>"; images[2] = "<div align='center'><a href='http://www.xxxx.com' target='_blank'><img src='http://www.xxxx.org/advertising/Opencockpits/xxxxxx.jpg' border='0' alt='' /></a></div>"; images[3] = "<div align='center'><a href='http://www.xxxx.com' target='_blank'><img src='http://www.xxxx.org/advertising/FSC/xxxxx.gif' border='0' alt='' /></a></div>"; images[4] = "<div align='center'><a href='http://www.xxxx.co.uk' target='_blank'><img src='http://www.xxxx.org/advertising/SimVionics/xxxxx.jpg' border='0' alt='' /></a></div>"; index = Math.floor(Math.random() * images.length); document.write(images[index]); //done // --></script> </BODY> </HTML>
Comment