Scrolling Title Bar Message

Started by Alan S, August 31, 2006, 04:00:22 PM

Previous topic - Next topic

Alan S

Just said i'd post this up. Adds a scrolling message to your browsers title bar

<script language="JavaScript">
<!--
var space = " ";
var speed = "200";
var pos = 0;
var msg = "Welcome To TheTeenZone.Net";
function Scroll()
{
document.title = msg.substring(pos, msg.length) + space + msg.substring(0,pos);
pos++;
if (pos > msg.length) pos = 0;
window.setTimeout("Scroll()", speed);
}
Scroll();
-->
</script>


To change the scroll speed change the number in the line            var speed = "200";

To change the message change the text in the line                  var msg = "Welcome To TheTeenZone.Net";


Demo - http://theteenzone.net/forum

Should work if you place it somewhere in the index.template.php , i use it in a tinyportal block.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Advertisement: