»
EnglishFrenchVietnamese

Print - Animated text on title bar - JavaScriptBank.com

Full version: jsB@nk » Status » Title » Animated text on title bar
URL: http://www.javascriptbank.com/animated-text-on-title-bar.html

Animated text on title bar © JavaScriptBank.comThis is a different script to create an animated message on title bar.

Full version: jsB@nk » Status » Title » Animated text on title bar
URL: http://www.javascriptbank.com/animated-text-on-title-bar.html



JavaScript
<SCRIPT language=JavaScript><!-- // hide from JavaScript challenged browsers// Heritage-Tech Simple Title Scroller// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// Created on Tuesday, June 19, 2001// By MoThugz (mothugz@yifan.net)// -----------------------------------// INSTRUCTIONS:// ~~~~~~~~~~~~~// a) Paste this script anywhere after your <TITLE> tag.// b) Your <BODY> tag should contain onLoad='zx()'//eg. <BODY onLoad='zx()' textcolor=#blabla etc.>// c) Set the scroll speed (look below)//    lower number = faster scrolling// d) Enjoy!// Set the scroll speed (in ms) here:var scrspd = 170;// That's it! nothing else to change from here...// Don't change these varsvar message = document.title;var mesleng = message.length;var fq = -1;var disp = "";function zx(){if (fq++<mesleng-1){document.title=message.substring(fq,mesleng);setTimeout("zx()",scrspd);}else{fq=0;setTimeout("zz()",scrspd);}}function zz(){disp = disp + message.charAt(fq);document.title=disp;fq++;if (fq<mesleng) {setTimeout("zz()",scrspd)}else {fq=-1;disp="";setTimeout("zx()",scrspd);}}// stop hiding --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=zx()><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->