Random BG Colour BBCode
Posted: 06 Mar 2010, 08:49
Random BG Colour BBCode
Author: Stoker
Description: The Random BG Colour BBCode makes the background color change every time the page is visited.
You can configure the script to change the colours.
BBCode:
HTML:
Helpline:
Example:
Demo:
This topic
[rbg][/rbg]
Author: Stoker
Description: The Random BG Colour BBCode makes the background color change every time the page is visited.
You can configure the script to change the colours.
BBCode:
Code: Select all
[rbg][/rbg]
Code: Select all
<script type="text/javascript">
/*Random background color- by javascriptkit.com
Visit JavaScript Kit (http://javascriptkit.com) for script
Credit must stay intact for use .**. */
//Enter list of bgcolors:
var bgcolorlist=new Array("#000000", "#800000", "#0000BF", "#008000", "#FF8000", "#FF80BF", "#00BFFF", "#FFFF00")
document.body.style.background=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)]
</script>
Code: Select all
Rbg: [rbg][/rbg]
Code: Select all
[rbg][/rbg]
This topic
[rbg][/rbg]