<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
<!--
var cur_clr = 999999
var c_val = 0
function stop_warp() {
document.bgColor = '#FFFFFF';
clearTimeout(loopID);
}
function warp_bg() {
if (cur_clr > 0) {
document.bgColor = '#' + cur_clr
cur_clr -= 111111
loopID = setTimeout("warp_bg()",1)
} else {
document.bgColor = '#000000'
c_val += 10
cur_clr = 999999
cur_clr -= c_val
loopID = setTimeout("warp_bg()",1)
}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<FORM>
<INPUT TYPE="button" VALUE="背景色ワ−プ・スタート" onClick="warp_bg()">
<input type="button" value="背景色ワ−プ・ストップ" onClick="stop_warp()"></FORM>
</CENTER>
</BODY>
</HTML>
|