|
-
Oct 9th, 2003, 09:34 AM
#1
Thread Starter
Fanatic Member
Changing Bgcolor
I want a timer to change the bgcolor every second. So here is what I have so far:
<html>
<head>
<Body bgcolor = "Black">
<script type="text/javascript">
function start() {
var timeout = setTimeout("Timeout();",2000);
}
function Timeout() {
<Body BGcolor = "Red">
var timeout = setTimeout("Color2();",1000);
}
function Color2() {
<Body BGcolor = "Green">
var timeout = setTimeout("Color3();",1000);
}
function Color3() {
<Body Bgcolor = "Lime">
}
</script>
</head>
<body onLoad="start()">
</body>
</html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|