»
AnglaisFran�aisVietnamien

Imprimer - Color Wheel - JavaScriptBank.com

Version compl�te: jsB@nk » Arrière-plan » Color Wheel
URL: https://www.javascriptbank.com/color-wheel.html

Color Wheel © JavaScriptBank.comCet Le code JavaScript va changer la arrière-plan d'une couleur à l'autre pour chacune des 10 couleurs, il commence la boucle à nouveau! Il ya également un On/Off bouton pour vous permettre de démarrer et arrêter le JavaScript

Version compl�te: jsB@nk » Arrière-plan » Color Wheel
URL: https://www.javascriptbank.com/color-wheel.html



JavaScript
<script language="javascript">/*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/<!-- Begin// author: Eric Stremming ([email protected])var pos = 10;function initArray() {this.length = initArray.arguments.length;for (var i = 0; i < this.length; i++) {this[i] = initArray.arguments[i];   }}var col=new initArray("4b","5b","8b","8b");function stop() {document.bgColor = '#FFFFFF';clearTimeout(loopID);}function start() {col[1]="red"col[2]="yellowgreen"col[3]="yellow"col[4]="whitesmoke"col[5]="white"col[6]="wheat"col[7]="violet"col[8]="turquoise"col[9]="tomato"col[10]="thistle"pos++;if (pos<0||pos>10) {pos = 0;}document.bgColor = col[pos];loopID = setTimeout("start()",50);}// End --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=start()><FORM><INPUT onclick='parent.location="javascript:location.reload()"' type=button value=" Turn on "><INPUT onclick=stop() type=button value=" Turn off"> </FORM></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->