4cheat 4 4cheat Регистрация 28 Июл 2013 Сообщения 74 Репутация 6 Спасибо 0 Монет 0 17 Апр 2016 #1 Суть: создаётся див на всю страницу, каждые 50мс цвет его меняется. javascript: document.body.innerHTML = ""; var colors = ["red", "green", "blue", "yellow"], phase = 0; setInterval(function () { document.getElementById("epilepsy").style.backgroundColor = colors[phase++]; if (phase == colors.length) phase = 0; }, 50); void 0;
Суть: создаётся див на всю страницу, каждые 50мс цвет его меняется. javascript: document.body.innerHTML = ""; var colors = ["red", "green", "blue", "yellow"], phase = 0; setInterval(function () { document.getElementById("epilepsy").style.backgroundColor = colors[phase++]; if (phase == colors.length) phase = 0; }, 50); void 0;
вкторф В вкторф Регистрация 25 Ноя 2013 Сообщения 95 Репутация 0 Спасибо 0 Монет 0 17 Апр 2016 #2 попробуй вот так jvascript: document.body.innerHTML=""; var colors = ["red", "green", "blue", "yellow"], phase = 0; setInterval(function () { document.getElementById("epilepsy").style.backgroundColor = colors[phase++]; if (phase == colors.length) phase = 0; }, 50); void 0; Позитивный голос 0
попробуй вот так jvascript: document.body.innerHTML=""; var colors = ["red", "green", "blue", "yellow"], phase = 0; setInterval(function () { document.getElementById("epilepsy").style.backgroundColor = colors[phase++]; if (phase == colors.length) phase = 0; }, 50); void 0;
vanka V vanka Регистрация 12 Окт 2012 Сообщения 83 Репутация 0 Спасибо 0 Монет 0 18 Апр 2016 #3 я ваще хз Позитивный голос 0