-
Notifications
You must be signed in to change notification settings - Fork 0
/
subtitle.js
24 lines (24 loc) · 877 Bytes
/
subtitle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
window.onload = changeSubtitle();
function changeSubtitle() {
var subtitle = document.getElementById("subtitle");
// while (true) {
// subtitle.innerHTML = "Join today at <i>mc.lukesmp.net</i>";
// setTimeout(4000);
// subtitle.innerHTML = "Another subtitle";
// setTimeout(4000);
// subtitle.innerHTML = "Yet another subtitle";
// setTimeout(4000);
// subtitle.innerHTML = "new website is new :D";
// setTimeout(4000);
// }
for (var i = 0; i < Infinity; i++) {
subtitle.innerHTML = "Join today at <i>mc.lukesmp.net</i>";
setTimeout(4000);
subtitle.innerHTML = "Another subtitle";
setTimeout(4000);
subtitle.innerHTML = "Yet another subtitle";
setTimeout(4000);
subtitle.innerHTML = "new website is new :D";
setTimeout(4000);
}
}