This is a simple script that demonstrates how to implement a scrolling text in the website title bar using simple javscript.Here is the code, Just copy and paste it inside your html …

<script type='text/javascript'> 
//script by mistonline.in, please donot delete this.Thanks.
msg = "Mistonline.in,";
msg = " ........Just a scrolling title example..add your own title here " + msg;position = 0;
function scrolltitle() {
document.title = msg.substring(position, msg.length) + msg.substring(0, position); position++;
if (position > msg.length) position = 0
window.setTimeout("scrolltitle()",170);
}
scrolltitle();
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *