[X]

Title Bar Scroller

text effects 1997 still works

Scrolls text across the browser tab title. The status bar trick's surviving cousin.

In 2026: Still works everywhere. This is the one status-bar effect browsers never took away.

Where it came from: Same family as the status bar scroller. Free script archives, 1997.
MDN

<script language="JavaScript">
var tmsg = "*** WELCOME *** THANKS FOR VISITING *** ";
var tpos = 0;
function scrollTitle() {
  document.title = tmsg.substring(tpos) + tmsg.substring(0, tpos);
  tpos = (tpos + 1) % tmsg.length;
  setTimeout(scrollTitle, 200);
}
scrollTitle();
</script>

<p style="font:13px Verdana">The title of this frame's own document is scrolling
right now, but a frame's title never reaches the browser tab, so here is a live
mirror of it. Put the script on a real page and the tab itself scrolls.</p>
<div id="tmirror" style="font:bold 14px 'Courier New';background:#000;color:#0f0;
     display:inline-block;padding:4px 10px"></div>
<script language="JavaScript">
setInterval(function () {
  document.getElementById("tmirror").innerHTML = document.title;
}, 200);
</script>
sandboxed demo · breaks nothing but itselfrestart

More in text effects

view the whole library ›