一段JS实现变色文字效果

admin 技术教程评论288

一段JS实现变色文字效果

<!-- js实现变色文字 -->
<div id="blink">
	<strong>
		<div align="left" style="text-align:center;">
			变色文字效果
		</div>
	</strong><strong>
	<script language="javascript"> function changeColor(){ var color="#f00|#0f0|#00f|#880|#808|#088|yellow|green|blue|gray"; color=color.split("|"); document.getElementById("blink").style.color=color[parseInt(Math.random() * color.length)]; } setInterval("changeColor()",200); </script>
	</strong>
</div>

文章源自小虫博客-https://www.xczi.cn/jishu/189.html

文章源自小虫博客-https://www.xczi.cn/jishu/189.html文章源自小虫博客-https://www.xczi.cn/jishu/189.html
admin


  • ·版权声明·



    1、本站文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系客服进行删除处理。
    2、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
    3、如有侵权请邮件admin@xczi.cn与我们联系处理。敬请谅解!


  • 转载请务必保留本文链接:一段JS实现变色文字效果-https://www.xczi.cn/jishu/189.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: