<!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>
一个JS函数搞定网页标题闪动效果
本文展示了一个简单的在线客服页面,使用JavaScript实现页面标题的动态变化效果,通过定时器每隔一段时间更改浏览器标签页的标题。

被折叠的 条评论
为什么被折叠?



