¾Æ·¡´Â ÀÚ¹Ù½ºÅ©¸³Æ® ¿ø¹®ÀÔ´Ï´Ù.
<html> <head> <script language=javascript> <!-- var downLayerId; var dropDegree = 10; //½ºÅ©·Ñ ¼Óµµ var doDirect; var DirectTerm = 4000; //½ºÅ©·Ñ Áö¿¬½Ã°£ var curDropIdx = 0; function DirectDown() { clearInterval(doDirect); clearInterval(downLayerId); for(i = curDropIdx ;i < document.all["DropHit"].length + curDropIdx;i++){ document.all["DropHit"][i%document.all["DropHit"].length].style.posTop = document.all["DropHit"][i%document.all["DropHit"].length].style.posHeight * (-1*((i-curDropIdx)%document.all["DropHit"].length)); } var temp = 'setInterval("DownLayer()",20)'; downLayerId = eval(temp); direction = "down"; } function DownLayer() { if(document.all["DropHit"][curDropIdx].style.posTop < document.all["DropHit"][curDropIdx].style.posHeight){ for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++){ document.all["DropHit"][j%document.all["DropHit"].length].style.posTop += dropDegree; } }else{ clearInterval(downLayerId); for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++){ document.all["DropHit"][j%document.all["DropHit"].length].style.posTop = document.all["DropHit"][j%document.all["DropHit"].length].style.posHeight *((-1*((j-curDropIdx)%document.all["DropHit"].length))+1); } curDropIdx = (curDropIdx + 1) ; curDropIdx = curDropIdx > document.all["DropHit"].length-1 ? curDropIdx%document.all["DropHit"].length:curDropIdx; var temp = 'setInterval("DirectDown()",DirectTerm)'; doDirect = eval(temp); } } function DirectUp() { clearInterval(doDirect); clearInterval(downLayerId); var tempIdx = 0; for(i = 0;i<document.all["DropHit"].length;i++){ tempIdx = (document.all["DropHit"].length + curDropIdx - i) %document.all["DropHit"].length; document.all["DropHit"][tempIdx].style.posTop = i*document.all["DropHit"][tempIdx].style.posHeight; } var temp = 'setInterval("UpLayer()",20)'; downLayerId = eval(temp); direction = "up"; } function UpLayer() { var tempIdx = 0; if(document.all["DropHit"][curDropIdx].style.posTop < document.all["DropHit"][curDropIdx].style.posHeight && document.all["DropHit"][curDropIdx].style.posTop > document.all["DropHit"][curDropIdx].style.posHeight * (-1)){ for(j = 0 ;j < document.all["DropHit"].length;j++){ tempIdx = (document.all["DropHit"].length + curDropIdx - j) %document.all["DropHit"].length; document.all["DropHit"][tempIdx].style.posTop -= dropDegree; } }else{ clearInterval(downLayerId); for(j = 0;j<document.all["DropHit"].length;j++){ tempIdx = (document.all["DropHit"].length + curDropIdx - j) % document.all["DropHit"].length; document.all["DropHit"][tempIdx].style.posTop = (j-1)*(document.all["DropHit"][tempIdx].style.posHeight); } curDropIdx = (curDropIdx - 1) ; curDropIdx = curDropIdx < 0 ? document.all["DropHit"].length-1:curDropIdx; var temp = 'setInterval("DirectUp()",DirectTerm)'; doDirect = eval(temp); } } //--> </script> </head> <body> <table cellspacing=0 cellpadding=0 border=0> <tr> <td> <div style="left:0px; overflow:hidden; width:380px; position:relative; top:0px; height:200px"> <div id=DropHit style="width:375px; height:200px; position:absolute; left:0px; top:0px; z-index:1; visibility:visible;"> <table border=0 cellpadding=0 cellspacing=0 width=375> <tr> <td><a href=http://www.happycgi.com><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/img01.gif width=125 height=200></a></td> <td><a href=http://www.happycgi.com><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/img02.gif width=125 height=200></a></td> <td><a href=http://www.happycgi.com><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/img03.gif width=125 height=200></a></td> </tr> </table> </div> <div id=DropHit style="width:375px; height:200px; position:absolute; left:0px; top:-200px; z-index:1; visibility:visible;"> <table border=0 cellpadding=0 cellspacing=0 width=375> <tr> <td><a href=http://www.happycgi.com><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/img04.gif width=125 height=200></a></td> <td><a href=http://www.happycgi.com><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/img05.gif width=125 height=200></a></td> <td><a href=http://www.happycgi.com><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/img06.gif width=125 height=200></a></td> </tr> </table> </div> <script language=javascript>DirectDown();</script> </div> </td> <td> <table cellspacing=0 cellpadding=0 width=13 border=0> <tr><td><a href="javascript:DirectUp()"><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/scroll_up.gif></a></td></tr> <tr><td align=center><img height=173 src=http://home.cein.or.kr/~homepy/js/js464/scroll_line.gif></td></tr> <tr><td><a href="javascript:DirectDown()"><img border=0 src=http://home.cein.or.kr/~homepy/js/js464/scroll_down.gif></a></td></tr> </table> </td> </tr> </table>
</body> </html>
|