Phiên bản đầy đủ: jsB@nk » Chữ » Mờ và chớp sáng » Chữ phát sáng
URL: https://www.javascriptbank.com/glowing-text-effect-script.html
Hiệu ứng tạo ra các dòng chữ có thể phát sáng trên trang web.
Phiên bản đầy đủ: jsB@nk » Chữ » Mờ và chớp sáng » Chữ phát sáng
URL: https://www.javascriptbank.com/glowing-text-effect-script.html
<script><!--var from = 5; //the animation start valuevar to = 11; //the animation end valuevar delay = 55; //the animation speedvar glowColor = "lime"; //the first colorvar glowColor2 = "red"; //the second colorvar glowColor3 = "yellow"; //the third colorvar glowColor4 = "aqua"; //the last color//no more editingvar i = to;var j = 0;textPulseDown();function textPulseUp(){if (!document.all)returnif (i < to){theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";i++;theTimeout = setTimeout('textPulseUp()',delay);return 0;}if (i = to){theTimeout = setTimeout('textPulseDown()',delay);return 0;}}function textPulseDown(){if (!document.all)returnif (i > from){theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i + ")";i--;theTimeout = setTimeout('textPulseDown()',delay);return 0;}if (i = from){theTimeout = setTimeout('textPulseUp2()',delay);return 0;}}//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 scriptsfunction textPulseUp2(){if (!document.all)returnif (i < to){theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i + ")";i++;theTimeout = setTimeout('textPulseUp2()',delay);return 0;}if (i = to){theTimeout = setTimeout('textPulseDown2()',delay);return 0;}}function textPulseDown2(){if (!document.all)returnif (i > from){theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i + ")";i--;theTimeout = setTimeout('textPulseDown2()',delay);return 0;}if (i = from){theTimeout = setTimeout('textPulseUp()',delay);return 0;}}//--></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<span id="theText" style="width:100%"><font size="4">WWW.JAVASCRIPTBANK.COM</font></span><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->