一个JS函数搞定网页标题闪动效果

来源:互联网 发布:淘宝开店要交押金吗? 编辑:程序博客网 时间:2024/05/27 00:32
<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>在线客服</title></head><body><script language="JavaScript"> step=0 function flash_title() {  step++  if (step==3) {step=1}          if (step==1) {document.title='【新消息】在线客服受理页面';}  if (step==2) {document.title='【   】在线客服受理页面';}  setTimeout("flash_title()",380); } flash_title()</script>aaaaaaddaaaaaa</body></html>
原创粉丝点击