Here is a simple JAVA random banner code you can paste in the HTML area of any forum.
EX:
This will show @ random.
image1.jpg @
http://www.yoursite1.com
image2.jpg @
http://www.yoursite2.com
image3.jpg @
http://www.yoursite3.com
Code:
<script language="javascript" type="text/javascript">
<!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
// keep adding items above here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//-->
</script>
Useage: If you need more banners edit / add another row.
Code:
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location