Come creare uno sfondo lampeggiante quando si apre una pagina Web

Per creare uno sfondo lampeggiante quando si apre una pagina Web, è necessario aggiungere il JavaScript riportato di seguito nel corpo di una pagina Web.

 function initArray () {this.length = initArray.arguments.lengthfor (var i = 0; i  = step) {red - = red_int; red_round = Math.round (rosso); red_hex = Dec2Hex (rosso); 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 = red_hex + grn_hex + blu_hex; // document.write ("

bgcolor = "+ red_hex + grn_hex + blu_hex); step ++;} document.bgColor = end;}