<HTML>
<HEAD>
<TITLE>샘플 페이지 </TITLE>
<!-- 1. 메모장 등으로 아래의 내용을 HTML 문서의 HEAD 부분에 붙여 넣으세요 -->
<SCRIPT LANGUAGE='JavaScript1.2'>
Phrase = new Array(
/*********** 슬라이드 시킬 문자열들을 입력 하세요 ***************************/
/*********** 태그 사용도 가능합니다. 다만 따옴표 사용에 유의 하세요***********/
"1. 안녕하세요? 이제는 완연한 가을 날씨 같습니다 ",
"2. 이제 그동안 하지 못했던 공부도 좀 열심히 해야겠네요",
"3. 책도 좀 봐야 겠어요<br>근대, 무슨 책이 재밋나요?",
"4. 영화도 보고싶구.......",
"5. 만화책도 보고싶구...........",
"6. 친구도 만나야 돼구..........",
"7. 우와~ 난 왜 이렇게 바뿌쥐??",
"8. 이그~ 이러다 올 가을 다 가겠네....<br>암암, 학생은 공부 하는게 기본이져<br>열씨미 공부 할께요~~~~<br><img src=http://www.dbdic.com/02img/ttl_main.gif>"
);
var Speed=800;
var Max_N=0, N=0, N0=0;
Ndiv=new Array("d0","d1","d2","d3","d4","d5","d6","d7");
//-----------------------------------------------
function S(n){
parent.document.all["div1"].innerHTML=Phrase[n];
parent.document.all[Ndiv[N0]].style.color="#000000";
parent.document.all[Ndiv[n]].style.color="#ff0000";
N0=n; N=n;
}
//-----------------------------------------------
function Load()
{
if (navigator.appName=="Netscape")
{alert("This is only IE-version!"); return;}
Max_N=Phrase.length;
S(0);
}
//-----------------------------------------------
function Start(){
N++;
if (N >= Max_N) N = 0;
S(N);
timerID = setTimeout("Start()",Speed);
}
//-----------------------------------------------
function Stop(){
clearTimeout(timerID);
}
</SCRIPT>
<style type="text/css">
/*********** 버튼 스타일 ***************************************/
input{
FONT-FAMILY: Courier;
FONT-SIZE: 16px;
}
/*********** 테이블 스타일 *************************************/
table{
background-color:999999;
}
/*********** 메세지 상자의 스타일 ******************************/
#div1{
border-width:8px;
border-color:green;
border-style:ridge;
background-color:white;
width:60%;
color:black;
padding:2px 4px 2px 14px;
text-align:left;
}
/*********** /메세지 상자의 스타일 정의 ************************/
</style>
</HEAD>
<!-- 2. 메모장 등으로 아래의 내용을 HTML 문서의 <BODY> 태그 안에 붙여 넣으세요 -->
<BODY bgcolor="#ffffcc" onload="Load()">
<!-- 3. 메모장 등으로 아래의 방법으로 HTML 문서의 BODY 부분에 붙여 넣으세요 -->
<center>
<table border=2 cellpadding=0 cellspacing=1 height=200>
<tr>
<td width=40>
<form name="F1">
<input type=button value=" Home " onclick="document.location ='http://bizserver.new21.net'">
<br>
<input type=button value=" 1 " onclick="S(0)" id=d0>
<input type=button value=" 2 " onclick="S(1)" id=d1>
<input type=button value=" 3 " onclick="S(2)" id=d2>
<input type=button value=" 4 " onclick="S(3)" id=d3>
<input type=button value=" 5 " onclick="S(4)" id=d4>
<input type=button value=" 6 " onclick="S(5)" id=d5>
<input type=button value=" 7 " onclick="S(6)" id=d6>
<input type=button value=" 8 " onclick="S(7)" id=d7>
<br>
<input type=button value=" 시 작 " onclick="Start()">
<input type=button value=" 중 지 " onclick="Stop()">
</td></form>
<th width=400>
<!---------- 텍스트가 디스플레이 되는 곳 입니다 -------------------->
<div id="div1">텍스트</div>
</th></tr>
</table>
</BODY>
</HTML>