Bạn dán toàn bộ đoạn code bên dưới vào thẻ html, nơi muốn hiển thị văn bản và thay đổi dòng chữ "CHÀO MỪNG CÁC BẠN ĐẾN VỚI MR. PHAN NHAN. CHÚC CÁC BẠN VUI VẺ" là được nhé. Chúc các bạn thành công.
<h2 id="messageBox" class="my-0 font-weight-bold">CHÀO MỪNG CÁC BẠN ĐẾN VỚI MR. PHAN NHAN. CHÚC CÁC BẠN VUI VẺ</h2>
<script>
let colors = ["blue", "red", "green", "purple", "orange", "yellow", "pink"];
let currentColor = 0;
setInterval(function() {
document.getElementById("messageBox").style.color = colors[currentColor++ % colors.length];
}, 400);
</script>