您好,欢迎访问一九零五行业门户网

怎样用按钮触发实现背景色的闪烁

这次给大家带来怎样用按钮触发实现背景色的闪烁,用按钮触发实现背景色的闪烁的注意事项有哪些,下面就是实战案例,一起来看一下。
要实现背景色闪烁效果只要如下代码加入到6c04bd5ca3fcae76e30b72ad730ca86d区域中即可
<script language="javascript"> function blinkit() {    intrvl=0;    for(ntimes=0;ntimes<3;ntimes++)    {    intrvl += 200;    settimeout("document.bgcolor='#0000ff';",intrvl);    intrvl += 200;    settimeout("document.bgcolor='#336699';",intrvl);    } } </script> <input type="button" value="blink" onclick="blinkit()">
相信看了这些案例你已经掌握了方法,更多精彩请关注其它相关文章!
相关阅读:
html里怎样实现异步上传文件
div标签中的元素margin-top失效的解决方法
iframe的节点初始化
以上就是怎样用按钮触发实现背景色的闪烁的详细内容。
其它类似信息

推荐信息