Scrolling Title Text
Here’s a pretty sweet little script I came across that will let you add scrolling text to your title (look up, see mine?). As far as I can tell if you leave your regular title tag intact this script shouldn’t have an adverse effect on your SEO efforts as the search engine bots will still see the standard static title. This is just one more way you can help your blog stand out from the rest.
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide this from older browsersvar typespeed = 200;
var MessagePause = 1000;
var message = new Array();
var currMessage = 0;
var offset = 0;
message[0] = “Your first message goes here.“;
message[1] = “Your second message goes here.“;
function Display() {
var text = message[currMessage];
if (offset < text.length) {
if (text.charAt(offset) == ” “)
offset++;
var partMessage = text.substring(0, offset + 1);
document.title = partMessage;
offset++;
setTimeout(”Display()”, typespeed);
} else {
offset = 0;
currMessage++;
if (currMessage == message.length)
currMessage = 0;
setTimeout(”Display()”, MessagePause);
}
}Display();
// end hide –>
</SCRIPT>
Instructions for use: Copy the code above and place it anywhere between your head tags (<head> </head>
.
Next, change the code in red to what you want your message(s) to be. You can delete the second line if you only want one message or add more lines for additional messages, just make sure number them correctly (0, 1, 2, 3, etc…). Comment if you have any questions on how to use it! Enjoy!
Like this blog? Sweet! Wanna help a guy out & buy me a cup of coffee?If you liked this post,do me a favor and
Stumble it! Thanks!
















3 responses so far ↓
1 TeasasTips // Apr 22, 2008 at 1:23 pm
Awesome Ty!! I am going to put that into my site ASAP! Thanks.
[Reply]
2 ameo // Apr 22, 2008 at 4:15 pm
nice , one , i saw you using it before i saw the post ,
really good and can be pretty usefull
[Reply]
3 Jason // Apr 23, 2008 at 4:45 pm
Pretty neat Ty.
[Reply]
Leave a Comment