运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
AخA
 
1
<html>
2
<head>
3
<title>JavaScript打字效果</title>
4
<script language="JavaScript">
5
var message="欢迎您来到中国!"
6
var message=message+" "
7
i="0"
8
var temptitle=""
9
var speed="150"
10
function titler(){
11
if (!document.all && !document.getElementById)
12
return
13
document.title=temptitle+message.charAt(i)
14
temptitle=temptitle+message.charAt(i)
15
i++
16
if(i==message.length)
17
{
18
i="0"
19
temptitle=""
20
}
21
setTimeout("titler()",speed)
22
}
23
window.onload=titler
24
</script>
25
</head>
26
<body>
27
看看IE标题栏是不是出现了打字效果?
28
</body>
29
</html>
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
x
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
IE标题栏和状态栏的打字效果
分类
网站常用
描述
让IE的标题栏出现打字效果,个性十足,不过一般还是不要用,因为影响视觉,程序是为了借鉴,以便写出更好的效果来,至于状态栏是怎么出现打字效果,这个不说多说了吧?
收藏