U E D R , A S I H C RSS

2010 Java Script/역전재판

html

<html>
<head>
<title></title>
<link rel='stylesheet' type='text/css' href='style.css' media='all'>
</head>
<body>
<div id='basewindow'>

<div id='chugoong'></div>
<div id='jesi'></div>
<div id='item_box'><span class='keyword'><br><br><br><br><br>hello</span></div>
<div id='item_pic'></div>
<div id='item_text'></div>
<!--<div id='human'></div>-->

	
	<div id='name'>
	
	</div>
	<div id='text'>
	 . 
	<span class='think'>(span  )</span><br>
	는 <span class='keyword'>!!</span> ㅎㅎ
	
	</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  x2 .
</body>
</html>

css

#basewindow {		/*면*/
width : 480px;
height : 320px;
background-color : black;
color : white;
position : absolute;
top : 0px;
left : 0px;
}
#text {		/*대*/
width : 460px;
height : 75px;
background-color : royalblue;
padding : 10px;
position : absolute;
top : 225px;
left : 0px;

}
#human {		/*  면*/
width : 256px;
height : 285px;
background-color : olive;
position : absolute;
top : 35px;
left : 116px;

}
#name {		/*( )*/
width : 90px;
height : 25px; 
background-color : gray;
position : absolute;
top : 200px;
left : 0px;
}
#chugoong {		/* */
width : 128px;
height : 32px; 
background-color : gray;
position : absolute;
top : 0px;
left : 0px;
}
#jesi{		/* */
width : 128px;
height : 32px; 
background-color : gray;
position : absolute;
top : 0px;
left : 352px;
}
#item_box {		/*를 눌 */
width : 480px;
height : 150px; 
background-color : green;
position : absolute;
top : 35px;
}
#item_pic {		/*   림*/
width : 130px;
height : 130px; 
background-color : transparent;
position : absolute;
top : 45px;
left : 10px;
}
#item_text {		/* 명*/
width : 280px;
height : 130px; 
background-color : skyblue;
position : absolute;
top : 45px;
left : 170px;
}
span.text {		/*대   */
color : white;
}
span.think {		/*대     */
color : #FB84E9;
}
span.keyword {		/*  */
color : red;
}
span.date { /*    */
color : yellow;
}

HTML

HTML JavaScript를 더.
<html>
 <head>
  <title></title>
  <link rel='stylesheet' type='text/css' href='style.css' media='all'>
  <!-- .-->
  <SCRIPT Language="JavaScript">
   <!--
    contents=new Array(); //대는 javascript  는 배 .
	i=0;
	function changetext(){ //  는 text부.
	 document.getElementById('text').innerHTML = contents[i]
	 i++
	}
   --></Script>
  <script language="javascript" SRC="./contents.js"></script> //대  javascript('contents.js') 부.
  <!---->
 </head>
 <body>
  <div id='basewindow'>
  냥 배
  <div id='chugoong'></div>
  <div id='jesi'></div>
  <div id='item_box'></div>
  <div id='item_pic'></div>
  <div id='item_text'></div>

	
  	<div id='name'>
	
	</div>
	<div id='text' Onclick="changetext()">
	 . 
	<span class='think'>(span  )</span><br>
	는 <span class='keyword'>!!</span> ㅎㅎ
	
	</div>
  </div>
  <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
    x2 .
  </body>
</html>
= 대 (contents.js)=
contents[0] = "내1"
contents[1] = "내2"
contents[2] = "내3"
contents[3] = "내4"
contents[4] = "내5"
contents[5] = "내6"
contents[6] = "내7"
contents[7] = "내8"
contents[8] = "내9"
contents[9] = "내10"
contents[10] = "내11"
contents[11] = "내12"
contents[12] = "내13"
contents[13] = "내14"
contents[14] = "내15"
contents[15] = "내16"
contents[16] = "내17"
contents[17] = "내18"
contents[18] = "내19"
contents[19] = "내20"
contents[20] = "내21"
.
.
.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:11
Processing time 0.0100 sec