RANDOM ADVERTISING DISPLAY

NOTE: Press Refresh or Reload of your browser and it will change the advertising on this page. This script allows to display more then one advertisings on one page.
SCRIPT SOURCE

<Script Language ="JavaScript">

function RandomNumber()
{
var today = new Date();
var num= Math.abs(Math.sin(today.getTime()/1000));
return num;
}

function RandomGraphics()
{
var x = RandomNumber();

if (x > .44)
{document.write("<A HREF='URL'><img src='IMAGE LOCATION' align=center hspace=10></a>"); return;
}
if (x > .33)
{document.write("<A HREF='URL'><img src='IMAGE LOCATION' align=center hspace=10></a>"); return;
}
if (x > .22)
{document.write("<A HREF='URL'><img src='IMAGE LOCATION' align=center hspace=10></a>"); return;
}
if (x > .11)
{document.write("<A HREF=URL'><img src='IMAGE LOCATION' align=center hspace=10></a>"); return;
}
if (x > 0)
{document.write("<A HREF='URL'><img src='IMAGE LOCATION' align=center hspace=10></a>"); return;
}
}
RandomGraphics();

//End Script

</SCRIPT>


Note: If you have more advertisings then five advertisings, Just copy the lines between these brackets { } and increase the numbers in every second line like this :
if(x > 33)
if(x > 22)
if(x > 11)

BACK HOME NEXT