当前位置: 代码迷 >> Web前端 >> 题目加提示框
  详细解决方案

题目加提示框

热度:85   发布时间:2012-11-23 00:03:43.0
标题加提示框
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>标题</title>
<script language="JavaScript">
step=0
function refresh_title()
{
step++
if (step==3) {step=1}
if (step==1) {document.title='【你有新的消息】'}
if (step==2) {document.title='【 】'}
setTimeout("refresh_title()",1000);
}
refresh_title();
</script>
</head>

<body>

</body>
</html>

  相关解决方案