问:js如何实现html标题栏闪烁效果?
七娃博客
566人阅读
var step = 0; var txt = document.title; function titleWink(){ step++; if(step==3){step=1} if(step==1){document.title='【 '+txt+' 】'} if(step==2){document.title='【新消息】'+txt} setTimeout("titleWink()",200); } titleWink();
主题开源不易,支持一下作者吧!
使用支付宝打赏
使用微信打赏
评论 | 0 条评论
登录之后才可留言,前往登录