| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- #C++ 연산자함수오버로딩
- html multimedia
- #JAVASCRIPT
- relative path
- #bubbleSort
- html5 new tag
- html plug-in
- docker example
- #자바상속#자바이즈어#is~a
- html code
- #성적관리프로그램
- html id
- git flow
- border-box
- html youtube
- #binary
- #1차원배열
- #3차원배열
- #android activity
- html object
- 토큰경제
- #CallByAddress
- #2차원배열
- 하이퍼레저패브릭
- #C++ has~a
- html video
- mac terminal command
- hyperledger transaction
- #다차원포인터
- html charset
Archives
- Today
- Total
A sentimental robot
setTimeout 재귀함수 본문
|
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 |
<html>
<title>10.19</title>
<head>
<script language="javascript">
var notice = "안녕하세요?"
var index = 0;
function showNotice() {
index++;
var div = document.getElementById("divClock");
if (index > notice.length) {
div.innerText = "";
index = 0;
} else div.innerText = notice.substr(0, index);
setTimeout(showNotice, 500);
}
</script>
</head>
<body onload="showNotice()">
<div id="divClock" class="clock"></div>
</body>
</html>
|
cs |
'Web' 카테고리의 다른 글
| blockRightClick(),blockSelect() (0) | 2018.10.19 |
|---|---|
| img (0) | 2018.10.19 |
| Date (0) | 2018.10.19 |
| onload (0) | 2018.10.19 |
| getElementsByTagName (0) | 2018.10.19 |