실행 방법 : 소스 코드를 확장자 smil 로 작성 하여 저장한 후
realplayer 로 실행 시킨다. 그림, 음악 등의 불러 온 파일은
반드시 같은 폴더에 있어야 한다.
<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<transition id="trans1" type="fade" fadeColor="yellow" dur="2s"/>
<transition id="trans2" type="clockWipe" subtype="clockwiseTwelve" dur="2s" />
<transition id="trans3" type="starWipe" subtype="fivePoint" dur="2s" />
<transition id="trans4" type="irisWipe" subtype="diamond" dur="2s" />
<transition id="trans5" type="clockWipe" subtype="clockwiseNine" dur="2s" />
<layout>
<root-layout width="160" height="160" background-color="#ff9dcb"/>
<region id="pic1" left="10" top="10" width="120" height="120"/>
<region id="pic2" left="10" top="30" width="120" height="120"/>
<region id="pic3" left="10" top="10" width="120" height="120"/>
<region id="over" left="10" top="10" width="140" height="140" />
<region id="pic5" left="90" top="40" width="120" height="120" />
<region id="pic6" left="10" top="10" width="120" height="120"/>
<region id="over1" left="10" top="130" width="140" height="10" />
</layout>
</head>
<body>
<par>
<img region="pic1" src="5.gif" begin="1s" dur="9s" fit="fill" left="60" top="40" width="10" height="30" />
<img region="pic1" src="5.gif" begin="2s" dur="8s" fit="fill" left="40" top="20" width="10" height="30" />
<img region="pic1" src="5.gif" begin="3s" dur="7s" fit="fill" left="80" top="20" width="10" height="30" />
<img region="pic1" src="5.gif" begin="4s" dur="6s" fit="fill" left="20" top="40" width="10" height="30" />
<img region="pic1" src="5.gif" begin="5s" dur="5s" fit="fill" left="100" top="40" width="10" height="30" />
<img region="pic1" src="5.gif" begin="6s" dur="4s" fit="fill" left="40" top="70" width="10" height="30" />
<img region="pic1" src="5.gif" begin="7s" dur="3s" fit="fill" left="80" top="70" width="10" height="30" />
<img region="pic1" src="5.gif" begin="8s" dur="2s" fit="fill" left="60" top="80" width="10" height="30" />
<img region="pic1" src="b_4.gif" begin="10s" dur="4s" fit="fill" left="60" top="40" width="60" height="70" fill="transition" transIn="trans1" transOut="trans1">
</img>
<img region="pic1" src="2.gif" begin="14s" dur="3s" fit="fill" left="20" top="40" width="60" height="70" fill="transition" transIn="trans2" >
</img>
<img region="pic6" src="ha1.jpg" begin="17s" dur="7s" fit="fill" left="20" top="40" width="60" height="70" fill="transition" transIn="trans4" >
</img>
<img region="pic5" src="1.jpg" begin="19s" dur="5s" fit="fill" width="60" height="70" fill="transition" transIn="trans5" >
</img>
<text src="b.txt" region="over" dur="24s" fill="freeze">
<param name="fontFace" value="Batang"/>
<param name="fontSize" value="5"/>
<param name="fontColor" value="#c094be"/>
<param name="fontWeight" value="bold"/>
<area href="3.jpg" show="new" begin="0s" end="17s" />
</text>
<text src="b1.txt" region="over1" begin="21s" dur="2s" fill="freeze">
<param name="fontSize" value="5"/>
<param name="fontColor" value="#c094be"/>
<param name="fontWeight" value="bold"/>
</text>
<audio src="happy.mp3" begin="0s" dur="13s"/>
</par>
</body>
</smil>

