Monday, January 17, 2011

How To Add Scrolling Title in Browser Title Bar For Blogger










1.Log in to your dashboard--> Desing- -> Edit HTML

2.Click on "Expand Widget Templates"

3.Scroll down to where you see </head> tag.

4.Now add below code before </head> tag.


<script type='text/javascript'>
//<![CDATA[
msg = "Blogger Tricks and Tools | Latest Blogger Tips and Tricks";
msg = " .................................. " + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
//]]>
</script>

Note: Replace Blogger Tricks and Tools | Latest Blogger Tips and Tricks with your scrolling text.

5.Now click on "Save Template" your are done..

Cheers

0 comments:

Post a Comment