<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에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5277 |
jinmuk
|
12년 전 | 6728 | |
| 5276 |
jinmuk
|
12년 전 | 2403 | |
| 5275 |
jinmuk
|
12년 전 | 9280 | |
| 5274 |
jinmuk
|
12년 전 | 1916 | |
| 5273 |
jinmuk
|
12년 전 | 2333 | |
| 5272 |
jinmuk
|
12년 전 | 3187 | |
| 5271 |
jinmuk
|
12년 전 | 2164 | |
| 5270 |
jinmuk
|
12년 전 | 2338 | |
| 5269 |
jinmuk
|
12년 전 | 2302 | |
| 5268 |
jinmuk
|
12년 전 | 1600 | |
| 5267 |
jinmuk
|
12년 전 | 1398 | |
| 5266 |
jinmuk
|
12년 전 | 1050 | |
| 5265 |
jinmuk
|
12년 전 | 1223 | |
| 5264 |
jinmuk
|
12년 전 | 2012 | |
| 5263 |
jinmuk
|
12년 전 | 1563 | |
| 5262 |
jinmuk
|
12년 전 | 1274 | |
| 5261 |
jinmuk
|
12년 전 | 2301 | |
| 5260 |
jinmuk
|
12년 전 | 2062 | |
| 5259 |
jinmuk
|
12년 전 | 1898 | |
| 5258 |
jinmuk
|
12년 전 | 1631 | |
| 5257 |
jinmuk
|
12년 전 | 2316 | |
| 5256 |
jinmuk
|
12년 전 | 1146 | |
| 5255 | 12년 전 | 1038 | ||
| 5254 | 12년 전 | 2449 | ||
| 5253 | 12년 전 | 2442 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기