简单web标题闪烁功能
2013-05-29 08:31
169 查看
<html>
<head>
<title>闪烁的标题</title>
<META http-equiv='Content-Type' content='text/html; charset=utf-8'>
<script type="text/javascript">
step = 0;
var ytitle = document.title;
function titleWink(){
step++;
if(step==3){step=1}
if(step==1){document.title='【 '+ytitle+' 】'}
if(step==2){document.title='【新消息】'+ytitle}
setTimeout("titleWink()",200);
}
titleWink();
</script>
</head>
<body>
</body>
</html>
<head>
<title>闪烁的标题</title>
<META http-equiv='Content-Type' content='text/html; charset=utf-8'>
<script type="text/javascript">
step = 0;
var ytitle = document.title;
function titleWink(){
step++;
if(step==3){step=1}
if(step==1){document.title='【 '+ytitle+' 】'}
if(step==2){document.title='【新消息】'+ytitle}
setTimeout("titleWink()",200);
}
titleWink();
</script>
</head>
<body>
</body>
</html>
相关文章推荐
- Applet web导航基本演习...只是简单的按钮转向网址功能程序测试编写
- 简单好用、功能强大、可扩展的跨平台web调试代理工具--whistle
- Web---创建Servlet的3种方式、简单的用户注册功能
- Webuploader教程(一)------简单实用上传功能
- 用WebVie实现简单的浏览器功能
- HTML5基础21----简单Web留言本(功能未实现)
- Web---创建Servlet的3种方式、简单的用户注册功能
- Android开发--WebView简单录音功能的实现
- .NET开发实现类似Web Parts功能,超简单实现
- easyui简单易用功能强大的轻量级WEB前端JavaScript框架
- 模拟web服务器简单功能
- openwebglobe 简单功能实现 Virtual Earth (虚拟地球)demo
- (NodeJS学习文章收集三) node.js基于express框架搭建一个简单的注册登录Web功能
- Webuploader教程(一)------简单实用上传功能
- 通过Socket实现简单web服务器功能(接收页面请求信息)不使用Tomcat!
- .NET开发实现类似Web Parts功能,超简单实现
- 用fluentdata+webform做一个简单项目(2)-FluentData核心功能
- Android WebView的简单使用,实现标题、加载进度提示
- java web中图片验证码功能的简单实现方法
- .NET开发实现类似Web Parts功能,超简单实现