<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY onLoad="return addColor();">
<!--<input type="button" value="Start Timer" onClick="return setTimer();" />-->
<!--<input type="button" value="Stop Timer" onClick="return stopTimer();" />-->
<div id='allDiv'></div>
</BODY>
</HTML>
<script language="javascript">
var i1=0,i2=0,i3=0,i4=0,i5=0,i6=0;
var timer;
function addColor(){
var cotNum=0;
//var array = new Array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f');
var array = new Array('f','e','d','c','b','a','9','8','7','6','5','4','3','2','1','0');
for(i1=0;i1<array.length;i1++){
for(i2=0;i2<array.length;i2++){
for(i3=0;i3<array.length;i3++){
for(i4=0;i4<array.length;i4++){
for(i5=0;i5<array.length;i5++){
for(i6=0;i6<array.length;i6++)
{
document.all("allDiv").innerHTML+='<div align="center" style="BACKGROUND-COLOR: #'+array[i1]+array[i2]+array[i3]+array[i4]+array[i5]+array[i6]+'" />'+array[i1]+array[i2]+array[i3]+array[i4]+array[i5]+array[i6]+' </div>';
//window.setTimeout(addColor,100);
cotNum++;
if(cotNum%100==0){
var conf=confirm('Continue or not');
if(!conf)
return;
}
}
}
}
}
}
}
}
function setTimer(){
timer=window.setInterval(addColor,100);
}
function stopTimer(){
window.clearInterval(timer);
}
</script>