아래 그림처럼 현재 년도의 현재 월의 달력에 현재일만

다른 색으로 표시되는 간단한 달력을 만들어보자.

 

 

 

달력 소스가 입력되어 있는 calendar.php 파일을

달력을 넣고 싶은 페이지에서 아이프레임을 사용하여 삽입하면 된다.

 

 

 

아래는 달력 소스인 calendar.php 파일이다.

 

 

calendar.php 

 

 

 

 

아래는 달력이 들어가는 페이지에서의 소스다.

iframe 부분에 calendar.php를 연결하면 위와 같은 달력이 표시된다.

 

<table cellpadding="0" cellspacing="0" border=0 align=center width="250" height=210>
<tr><td style="padding:10px;border-width:3px; border-color:#7abae4; border-style:double; background-color:e6f2f8">
<table cellpadding="0" cellspacing="0" border=0 align=center width="100%"><tr><td>

 

<iframe src="calendar.php" frameborder=0 scrolling=no width=100% height=180 name=main></iframe>

 

</td></tr></table>
</td></tr></table>

 

 

 

 

 
 
 
 

 

 

Posted by Y&S