View Single Post
04-01-2006, 07:40 PM
#2
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

I'm not sure if this is any use to you, but I use this code on one of my sites.
Just add/remove the applicable info:

Code:
<script language="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_cnt1 = 4;
var ad1 = rand(ad_cnt1);
var link1;
var adBanner1;
var width1
var height1
if (ad1==1) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
if (ad1==2) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
if (ad1==3) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
if (ad1==4) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
document.write('<center><a href="' + link1 + '" target="_top">');
document.write('<img src="' + adBanner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>');
document.write('</center>');
// End -->
</SCRIPT>