Banner rotations

I don't know about the module for it, but I have the code if you'd like to use it:
Code:
<script type="text/javascript">
<!-- Begin
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
	var result = Math.ceil(rnd()*number);
	if (!result)result++;
        return result
};
var ad_cnt5 = 5;
var ad5 = rand(ad_cnt5);
var link5;
var adBanner5;
var width5
var height5
if (ad5==1) {
link5="http://gamegrounds.forumotion.ca/";
adBanner5="http://i88.servimg.com/u/f88/13/38/93/91/banner10.png";
width5="480";
height5="100";
alt5="GameGrounds";
}
if (ad5==2) {
link5="http://www.FantasyFooty.co.cc";
adBanner5="http://www.filehive.com/files/090616/footy.png";
width5="480";
height5="100";
alt5="Fantasy Footy";
}
if (ad5==3) {
link5="www.moviediscussions.net";
adBanner5="http://www.moviediscussions.net/forums/banners/moviediscussionssigsmall.png";
width5="480";
height5="100";
alt5="Movie Discussions";
}
if (ad5==4) {
link5="http://www.24forum.co.cc";
adBanner5="http://i299.photobucket.com/albums/mm307/agentmanningctu/t24flogo1-1.png";
width5="480";
height5="100";
alt5="24 Fan Forums";
}
if (ad5==5) {
link5="http://adminsarea.net";
adBanner5="http://i225.photobucket.com/albums/dd111/jasdk12/cce55729.png";
width5="480";
height5="100";
alt5="Adminsarea";
}
document.write('<center><a href="' + link5 + '" target="_new">');
document.write('<img src="' + adBanner5 + '" width=' + width5 + ' height=' + height5 + ' border=0 alt="' + alt5 + '"></a>');
document.write('</center>');
// End -->
</SCRIPT>

Just edit the info I already had in there (I use it for my ForuMansion forum.)
I hope that helps. 😉
 
Back
Top Bottom