<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
</HEAD>
<BODY>
<!------------ 아래의 폼태그를 원하는 위치에 복사해 넣으세요 ---------------->
<p align=center>
<form name="news">
<textarea name="news2" cols=40 rows=4 wrap=virtual></textarea>
</form>
<!------------ 아래 스크립트를 BODY 태그 다음에 복사 해 넣으세요 ----------->
<script language=JavaScript>
var newsText = new Array();
// 보여줄 메세지들을 입력 하세요 (n 표시는 줄을 바꿀때 사용합니다)
newsText[0] = "동해물과 백두산이 마르고 닳도록n(애국가를 시작 합니다)n일동 기립!!";
newsText[1] = "(먼저 1절부터 하겠습니다)n하느님이 보우하사 우리나라 만세";
newsText[2] = "무궁화 삼천리 화려 가앙산";
newsText[3] = "대한 사람 대한으로 길이 보전하세";
newsText[4] = "남산위의 저 소나무 철갑을 두른듯......."
var ttloop = 1; // 메세지 반복 여부? (1 = 반복; 0 = 아님)
var tspeed = 50; // 타이핑 속도 (클수록 느려집니다)
var tdelay = 1000; // 메세지간의 지연 속도 (1000=1초)
var dwAText, cnews=0, eline=0, cchar=0, mxText;
function doNews() {
mxText = newsText.length - 1;
dwAText = newsText[cnews];
setTimeout("addChar()",1000)
}
function addNews() {
cnews += 1;
if (cnews <= mxText) {
dwAText = newsText[cnews];
if (dwAText.length != 0) {
document.news.news2.value = "";
eline = 0;
setTimeout("addChar()",tspeed)
}
}
}
function addChar() {
if (eline!=1) {
if (cchar != dwAText.length) {
nmttxt = ""; for (var k=0; k<=cchar;k++) nmttxt += dwAText.charAt(k);
document.news.news2.value = nmttxt;
cchar += 1;
if (cchar != dwAText.length) document.news.news2.value += "_";
} else {
cchar = 0;
eline = 1;
}
if (mxText==cnews && eline!=0 && ttloop!=0) {
cnews = 0; setTimeout("addNews()",tdelay);
} else setTimeout("addChar()",tspeed);
} else {
setTimeout("addNews()",tdelay)
}
}
doNews()
</script>
<!---------------------- 여기까지 ----------------------->
</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<HEAD>
<TITLE> Sample Script </TITLE>
</HEAD>
<BODY>
<!------------ 아래의 폼태그를 원하는 위치에 복사해 넣으세요 ---------------->
<p align=center>
<form name="news">
<textarea name="news2" cols=40 rows=4 wrap=virtual></textarea>
</form>
<!------------ 아래 스크립트를 BODY 태그 다음에 복사 해 넣으세요 ----------->
<script language=JavaScript>
var newsText = new Array();
// 보여줄 메세지들을 입력 하세요 (n 표시는 줄을 바꿀때 사용합니다)
newsText[0] = "동해물과 백두산이 마르고 닳도록n(애국가를 시작 합니다)n일동 기립!!";
newsText[1] = "(먼저 1절부터 하겠습니다)n하느님이 보우하사 우리나라 만세";
newsText[2] = "무궁화 삼천리 화려 가앙산";
newsText[3] = "대한 사람 대한으로 길이 보전하세";
newsText[4] = "남산위의 저 소나무 철갑을 두른듯......."
var ttloop = 1; // 메세지 반복 여부? (1 = 반복; 0 = 아님)
var tspeed = 50; // 타이핑 속도 (클수록 느려집니다)
var tdelay = 1000; // 메세지간의 지연 속도 (1000=1초)
var dwAText, cnews=0, eline=0, cchar=0, mxText;
function doNews() {
mxText = newsText.length - 1;
dwAText = newsText[cnews];
setTimeout("addChar()",1000)
}
function addNews() {
cnews += 1;
if (cnews <= mxText) {
dwAText = newsText[cnews];
if (dwAText.length != 0) {
document.news.news2.value = "";
eline = 0;
setTimeout("addChar()",tspeed)
}
}
}
function addChar() {
if (eline!=1) {
if (cchar != dwAText.length) {
nmttxt = ""; for (var k=0; k<=cchar;k++) nmttxt += dwAText.charAt(k);
document.news.news2.value = nmttxt;
cchar += 1;
if (cchar != dwAText.length) document.news.news2.value += "_";
} else {
cchar = 0;
eline = 1;
}
if (mxText==cnews && eline!=0 && ttloop!=0) {
cnews = 0; setTimeout("addNews()",tdelay);
} else setTimeout("addChar()",tspeed);
} else {
setTimeout("addNews()",tdelay)
}
}
doNews()
</script>
<!---------------------- 여기까지 ----------------------->
</BODY>
</HTML><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5402 |
잘살아보자
|
11년 전 | 1550 | |
| 5401 |
천재조상훈
|
11년 전 | 1467 | |
| 5400 |
잘살아보자
|
11년 전 | 2183 | |
| 5399 |
잘살아보자
|
11년 전 | 1151 | |
| 5398 |
잘살아보자
|
11년 전 | 3042 | |
| 5397 |
잘살아보자
|
11년 전 | 3212 | |
| 5396 |
잘살아보자
|
11년 전 | 1821 | |
| 5395 |
잘살아보자
|
11년 전 | 4715 | |
| 5394 | 11년 전 | 9783 | ||
| 5393 |
|
11년 전 | 2568 | |
| 5392 |
|
11년 전 | 1095 | |
| 5391 | 11년 전 | 2537 | ||
| 5390 | 11년 전 | 2105 | ||
| 5389 |
star3840
|
11년 전 | 1014 | |
| 5388 | 11년 전 | 4168 | ||
| 5387 |
|
11년 전 | 704 | |
| 5386 | 11년 전 | 1224 | ||
| 5385 |
|
11년 전 | 1627 | |
| 5384 | 11년 전 | 1838 | ||
| 5383 |
잘살아보자
|
11년 전 | 1841 | |
| 5382 | 11년 전 | 4603 | ||
| 5381 | 11년 전 | 1590 | ||
| 5380 |
잘살아보자
|
11년 전 | 835 | |
| 5379 |
잘살아보자
|
11년 전 | 2017 | |
| 5378 | 11년 전 | 2579 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기