JS函数实现网页标题(title)闪动效果
发布时间:2015-08-08 编辑:jiaochengji.com
分享一个JS网页标题(title)闪动效果的函数代码,学习下网页标题闪动的实现方法,感兴趣的朋友参考下。
例子,js实现网页标题闪动提示。
复制代码 代码示例:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网页标题闪动效果-- www.jiaochengji.com</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>
教程集,欢迎大家的光临。
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网页标题闪动效果-- www.jiaochengji.com</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>
教程集,欢迎大家的光临。
</body>
</html>
您可能感兴趣的文章:
JS函数实现网页标题(title)闪动效果
js实现网页标题栏的闪烁效果(示例)
js实现网页标题闪烁效果
让新消息在网页标题闪烁提示的jQuery代码
网页标题title闪动提示效果实现方法
网页标题闪烁title标题闪烁(js、jquery)
jquery文字闪动效果实例
Jquery.LazyLoad.js修正版下载,实现图片延迟加载插件
JS实现网页标题title文字倒序滚动
js实现网页标题滚动效果特效代码
[关闭]