Kahless
Administrator
Guitar Star
Posts: 1,045
|
Post by Kahless on Nov 1, 2007 22:57:06 GMT -5
Description: places a randomly selected banner in the welcome table
Source: Open
Cross-Browser: Yes
Editing: Follow instructions in code
Global Header
<script type="text/javascript"> <!-- /* Random Banner */
var banners = [ "Default Banner", "Random Banner1", "Random Banner2" ]; //to add more place the URL in quotes in the above [ and ], if it is NOT the last one in the list add a comma
var rnd = Math.floor(Math.random() * banners.length);
document.getElementsByTagName('img')[0].src = banners[rnd]; //--> </script>
|
|