js 改变浏览器标题 PHP

代码:

<!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>
<title>无标题页</title>
<link id="link1" rel="Shortcut Icon" href="1.ico" />
</head>
<body style="cursor:url(1.cur); height:100%;">
<script type="text/javascript">
var bo = true;
var title = document.title;
window.setInterval(
function(){
document.title
= (bo?'[信]':'[★]') + title;
bo
= !bo;
},
500);
</script>
设置为100毫秒时,火狐正常,IE、Chrome都不正常。
</body>
</html>

注意 改变document.title的时间间隔设置为100毫秒时,火狐正常,IE、Chrome都不正常。

设置浏览器小图标 <link id="link1" rel="Shortcut Icon" href="1.ico" />

改变鼠标样式 <body style="cursor:url(1.cur); ">


欢迎转载,转载请注明:转载自[ http://www.cnblogs.com/zjfree/ ]
原文地址:https://www.cnblogs.com/zjfree/p/2219123.html