|
|
<HTML> <HEAD> <TITLE> Jasko Sample Script </TITLE> <!------ 1. ¾Æ·¡ÀÇ Äڵ带 HEAD ºÎºÐ¿¡ ºÙ¿© ³Ö¾î¼¼¿ä -----------------> <style type="text/css"> /*----- ÅؽºÆ® ¿µ¿ªÀÇ ½ºÅ¸ÀÏ -----*/ .textstyle { position:absolute; left:-2000px; width:110px; height:auto; font-family:±¼¸²; font-size:9pt; text-align:center; color:FFFFFF; } /*----- Ä¿¹ö ¿µ¿ªÀÇ ½ºÅ¸ÀÏ ----*/ .coverstyle { position:absolute; left:-2000px; width:140px; height:180px; background-color:black; filter:alpha(opacity=0,finishopacity=100,style=2,startX=0px,startY=0px,finishX=120px,finishY=160px); } </STYLE> <SCRIPT LANGUAGE="JavaScript"> <!-- var covertop=10 var coverleft=10 var coverwidth=140 var coverheight=180 var texttop=covertop var textleft=coverleft+15 var textwidth=coverwidth-20 var textheight=500 var cliptop=texttop var clipright=textwidth var clipbottom=coverheight var clipleft=0 var clippoints var step=2 var pause=50 var timer function init() { if (document.all) { document.all.text.style.posTop=texttop document.all.text.style.posLeft=textleft document.all.cover.style.posTop=covertop document.all.cover.style.posLeft=coverleft scrolltext() } } function scrolltext() { if (document.all.text.style.posTop > (covertop-textheight)) { cliptop+=step clipbottom+=step clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" document.all.text.style.clip=clippoints document.all.text.style.posTop-=step } else { document.all.text.style.posTop=texttop cliptop=covertop clipbottom=coverheight } timer= setTimeout("scrolltext()",pause) } // ---> </SCRIPT> <!------------------------- ¿©±â±îÁö ------------------------------> </HEAD> <!------ 2. ¾Æ·¡ÀÇ À̺¥Æ® Çڵ鷯¸¦ BODY ű׾ȿ¡ ºÙ¿© ³ÖÀ¸¼¼¿ä ------> <BODY bgcolor=black onLoad="init()"> <!------------------------- ¿©±â±îÁö ------------------------------> <!------ 3. ¿øÇÏ´Â À§Ä¡¿¡ ¾Æ·¡¿Í °°Àº ¹æ¹ýÀ¸·Î ºÙ¿© ³ÖÀ¸¼¼¿ä ---------> <DIV ID="text" class="textstyle"> ÀÌ°÷¿¡ ¸Þ¼¼Áö¸¦ ÀÔ·Â Çϼ¼¿ä </DIV> <DIV ID="cover" class="coverstyle"></DIV> </BODY> </HTML> |