title滚动
2015-10-10 12:53
309 查看
代码:
<html>
<head>
<title>滚动的文字在TITLE栏上不停滚动</title><script language=javascript >
var text=document.title
var timerID
function newtext() {
clearTimeout(timerID)
document.title=text.substring(1,text.length)+text.substring(0,1)
text=document.title.substring(0,text.length)
timerID = setTimeout("newtext()", 100)
}
</script>
</head>
<body onload="newtext()">
</body>
</html>
摘自:http://www.dabaoku.com/texiao/zonghe/201007096348.shtml
<html>
<head>
<title>滚动的文字在TITLE栏上不停滚动</title><script language=javascript >
var text=document.title
var timerID
function newtext() {
clearTimeout(timerID)
document.title=text.substring(1,text.length)+text.substring(0,1)
text=document.title.substring(0,text.length)
timerID = setTimeout("newtext()", 100)
}
</script>
</head>
<body onload="newtext()">
</body>
</html>
摘自:http://www.dabaoku.com/texiao/zonghe/201007096348.shtml
相关文章推荐
- iOS开发中@property的属性weak nonatomic strong readonly等介绍
- ios开发中WebView,去除(自定义)JS中Alert显示的网址
- 基于redis的tomcat 7.X session同步解决方案
- 行内元素与块状元素的三个区别
- 去掉SSH KEY密码
- [Leetcode]Move Zeroes
- Windows GDI GDI+ DC
- Ping pong(树状数组)
- 安卓开发环境的搭建和解决在Eclipse新建安卓5.1工程不能自动生成R文件的问题
- 警告:C4018 "<":有符号/无符号不匹配
- Python 2.6.6升级到Python 2.7.3
- 小王梦游记(一)
- Matlab_Marr小波尺度变换图
- Tracing mysqld Using DTrace
- Xamarin笔记
- opencv在qt中的配置
- opencv在qt中的配置
- LeetCode:Merge Two Sorted Lists
- mysql事务管理及spring声明式事务中主动异常抛出使数据库回滚
- Android - 应用程序的优先级和进程状态