<!-- #include file = "Dbconnect/Dbconnect.asp" -->
<!-- #include file = "Library/Function.asp" -->
<script language=javascript>
<!--
var downLayerId;
var dropDegree = 5; //스크롤 속도
var doDirect;
var DirectTerm = 2000; //스크롤 지연시간
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>
<link href="CSS/style.css" rel="stylesheet" type="text/css" />
<body onLoad="DirectUp();">
<%
SET RS = DBCON.EXECUTE("select top 6 intSeq, strBoardID, strName, strSubject, strContent, strFileImage = (select top 1 strFileName from mplus_board_file where strFileCode = mplus_board.strFileCode), dateRegDate from mplus_board where strBoardID like '58gallery%' AND [bitDelete] = 0 AND [bitBad] = 0 AND [bitCheck] = 1 order by intSeq desc")
IF
댓글 3