Kā veidot mirgojošu fonu, atverot tīmekļa lapu

Lai izveidotu mirgojošu fonu, atverot tīmekļa lapu, tīmekļa vietnes korpusā ir jāpievieno tālāk norādītā JavaScript.

 funkcija initArray () {this.length = initArray.arguments.lengthfor (var i = 0; i  = solis) {red - = red_int; red_round = Math.round (sarkans); red_hex = dec2Hex (sarkans); 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); solis ++;} document.bgColor = end;}