Full version: jsB@nk » Text » Karaoke » Scrolling- Glowing Text Effect
URL: https://www.javascriptbank.com/scrolling-glowing-text-effect.html
This JavaScript animates a text to attract the visitors attention. It takes the first letter of the text, changes its color, changes it back and moves on to the next letter.
Full version: jsB@nk » Text » Karaoke » Scrolling- Glowing Text Effect
URL: https://www.javascriptbank.com/scrolling-glowing-text-effect.html
<SCRIPT LANGUAGE="JavaScript">//Copyright (c) 2001 Coyotee Labs Romania (www.coyoteelabs.go.ro)//This script can be used freely as long as all copyright messages are//intact. Visit WWW.COYOTEELABS.GO.RO for more scriptstext = "JavaScriptBank.com"; //the text that will be displayedcolor1 = "yellow"; //the normal text colorcolor2 = "red"; //the highlight colorfontsize = "7"; //font sizespeed = 100; //highlight speed (higher -> slower | lower -> faster)i = 0;if (navigator.appName == "Netscape") {document.write("<layer id=a visibility=show></layer><br><br><br>");}else {document.write("<div id=a></div>");}function changeCharColor() {if (navigator.appName == "Netscape") {document.a.document.write("<center><font size =" + fontsize + "><font color=" + color1 + ">");for (var j = 0; j < text.length; j++) {if(j == i) {document.a.document.write("<font color=" + color2 + ">" + text.charAt(i) + "</font>");}else {document.a.document.write(text.charAt(j));}}document.a.document.write('</font></font></center>');document.a.document.close();}if (navigator.appName == "Microsoft Internet Explorer") {str = "<center><font size=" + fontsize + "><font color=" + color1 + ">";for (var j = 0; j < text.length; j++) {if( j == i) {str += "<font color=" + color2 + ">" + text.charAt(i) + "</font>";}else {str += text.charAt(j);}}str += "</font></font></center>";a.innerHTML = str;}(i == text.length) ? i=0 : i++;}setInterval("changeCharColor()", speed);</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->