***220
Get 1000's of EXTRA hits starting at only $1 with Sitehoppin' Beer Stocks! SPECIAL: Get 25% off, buy beer stock starting at only $0.75!
Powered by MaxBlogPress 

TysBlog.com TysBlog.com


Spring Clearance at VistaPrint! Save up to 90%!

How to create scrolling title text. This one’s easy…

April 22nd, 2008 · 3 Comments · All, design, how to, technical

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 browsers

var 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&gt;).

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?

Please click your favorite bookmarking service below.
Save and share this page, and in turn help me
so I can continue to help you!:
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Furl
  • Technorati
  • Sphinn
  • TwitThis
  • Google
  • Reddit
  • Netscape
  • YahooMyWeb
  • Mixx
  • StumbleUpon


If you liked this post,do me a favor and Stumble it! Thanks!
Subscribe

Tags: ·

3 responses so far ↓

  • 1 TeasasTips // Apr 22, 2008 at 1:23 pm

    MyAvatars 0.2

    Awesome Ty!! I am going to put that into my site ASAP! Thanks.

    [Reply]

  • 2 ameo // Apr 22, 2008 at 4:15 pm

    MyAvatars 0.2

    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

    MyAvatars 0.2

    Pretty neat Ty.

    [Reply]

Leave a Comment

:) :( :d :"> :(( \:d/ :x 8-| /:) :o :-? :-" :-w ;) [-( :)>- more »