
October 23rd, 2003
04:29 PM
changing bg color on refresh
Hey, I'm trying to figure out how to change background color on a page every refresh. Same sort of idea as spoono's site. The way the background design changes every time the page is re-loaded. can anyone point me in the right direction to a site, or a tutorial that explains how to do it?
thanks in advance everyone!
~C.

October 23rd, 2003
04:41 PM
Neverside Newbie
Status: Offline!
Let's see if I can do this 
This may or may not work. My knowledge of javascript isn't that great.
This goes in your header
<script type="text/javascript">
// List of colors. Add as many as you like
var bgcolors = new array( "#000000", "#ffffff", "#00ff00" )
document.bgcolor = bgcolors[Math.random( )]
</script>