Random Banner

JUST HIGHLIGHT THE TEXT THEN RIGHT CLICK, COPY AND PASTE INTO YOUR HTML PAGE.

      BUT REMEMBER TO CHANGE THE VARIABLES THAT ARE IN RED!



Source code for Random banner.

<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 > .77)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > .66)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > .55)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > .44)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > .33)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > .22)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > .11)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
if (x > 0)
{document.write("<A HREF='URL'><img src='image here' align=center hspace=10></a>");
return;
}
}
RandomGraphics();
//--></SCRIPT>


This document was last modified Monday, November 03, 2014 At 5:40:32 PM