Home  >  Article  >  Web Front-end  >  Fluorescent word effect of Javascript_button special effect

Fluorescent word effect of Javascript_button special effect

WBOY
WBOYOriginal
2016-05-16 19:19:551577browse


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> <!-- var from = 1; var to = 4; var delay = 55; //闪的速度 var glowColor = "lime";//颜色 var i = to; var j = 0; textPulseDown(); function textPulseUp() { if (!document.all) return if (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) return if (i > from) { theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")"; i--; theTimeout = setTimeout('textPulseDown()',delay); return 0; } if (i = from) { theTimeout = setTimeout('textPulseUp()',delay); return 0; } } //--> </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn