0
4.1kviews
Write a JavaScript program to change background color continuously

Mumbai University > Information Technology > Sem 4 > Web Programming

Marks: 10M

Year: May 2014

1 Answer
0
7views

JavaScript program to change background color continuously:

<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<title> Background effect by using loop </title>
<script language="javascript">
var COLOR = 999999
var woot = 0
function stoploop() 
{
document.bgColor = '#fff';
clearTimeout(loopID);
}
function loopBackground()
 {
if (COLOR > 0) 
{
document.bgColor = '#' + COLOR
COLOR -= …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.