-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path跑马灯.html
44 lines (42 loc) · 915 Bytes
/
跑马灯.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<script>
var txt=" 文字 ";
var interval=50;
var seq=0;
function LenScroll(){
document.getElementById("lenText").value=txt.substring(seq,txt.length)+" "+txt;
seq++;
if(seq>txt.length)
seq=0;
window.setTimeout("LenScroll()",interval)
}
</script>
<style>
body{
text-align:center;
}
input{
background:transparent;
border:none;
color:#FF0004;
font-size:45px;
font-weight:bold;
font-family:SimHei;
}
</style>
</style>
</head>
<body onLoad="LenScroll()">
<form id="myForm">
<center><input type="text" id="lenText"></center>
</form>
</body>
</html>