Kako stvoriti pozadinu koja treperi prilikom otvaranja web stranice

Da biste stvorili pozadinu koja treperi prilikom otvaranja web-stranice, u tijelo web-stranice trebate dodati sljedeći JavaScript.

 funkcija initArray () {this.length = initArray.arguments.lengthfor (var i = 0; i  = korak) {crveno - = red_int; red_round = Math.round (crveno); red_hex = Dec2Hex (crveno); 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;}