WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Changing Background colors


Place this script in the head of the document.

<Html>
<Head>
<title>Changing Background colors</title>

<script language=javascript>

<!-- Hide script from old browsers
Var bGs = new Array ("gray", "orange", blue", "black")
var newBg = 0
var bgColors = 4
function rotateBg() {
if (document.images) {
newBG++
if (newBg ==bgColors) {
newBg = 0
}
document.bgColor=bGs [newBg]
setTimeout ("rotateBg() ", 3*1000)
}
}
// end hiding script from old browsers -->

</script>
<Body bgcolor=white onload="rotateBg()"></body>
</html>

Click here to see it in action.

.

 

More Resources
Scrolling Text
Taking and pasting input to your web page
Customize Messages
Create Rollovers
Alert the user
Put the current date on your site

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.