Hogyan lehet létrehozni egy villogó hátteret, amikor megnyit egy weblapot

Villogó háttér létrehozásához, amikor megnyit egy weboldalt, az alábbi JavaScript-t hozzá kell adni a weboldal testéhez.

 függvény initArray () {this.length = initArray.arguments.lengthfor (var i = 0; i  = lépés) {red - = red_int; red_round = Math.round (piros); red_hex = Dec2Hex (piros); grn - = grn_int; grn_round = Math.round (grn); grn_hex = Dec2Hex (grn); blu - = blu_int ; blu_round = Math.round (blu); blu_hex = Dec2Hex (blu); document.bgColor = piros_hex + grn_hex + blu_hex; // document.write ("

bgcolor = "+ red_hex + grn_hex + blu_hex); lépés ++;} document.bgColor = end;}