-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (33 loc) · 819 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
a();
});
var i = 0;
var a = function() {
if(i<20){
var msg = "<li id=" + i + ">" + (i++) + "...</li>";
$("#ulid").append(msg);
var len = $('#ulid').children('li').length;
if(len % 6 == 0) {
$("#adiv").find("ul li:first-child").remove();
}
}else{
$("#adiv").find("ul li:first-child").remove();
}
setTimeout(a, 500, "");
}
</script>
</head>
<body>
<div style="position: fixed;bottom: 0;" id="adiv">
<ul id="ulid" style="list-style-type:none">
</ul>
</div>
</body>
</html>