묻고답하기

다음 소스는 5개의 이미지를 한개씩 슬라이드 시키는 소스입니다.

제가 알고싶은건 총 이미지가 15개일경우

표시가 되는 이미지는 5개이며,

페이지단위로 슬라이드 전환이 되는게 아니라 한상품씩 없어지고 나오는 형식으로 표현하고 싶습니다.

이런식이죠..
1
2
3
4
5



2
3
4
5
6



3
4
5
6
7

이런식으로요..

자바스크립 고수님들께 부탁드립니다. 제게 답을 주세요.. ㅜ.ㅠ



<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="" type="text/css">
<script language="JavaScript1.2">
//For full source code, installation instructions, Terms Of Use, visit http://www.dynamicdrive.com
//configure the below five variables to change the style of the scroller
var scrollerwidth=187
var scrollerheight=70
var scrollerbgcolor='white'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''
var interval = 1 // 스크롤되는 속도 숫자가 높을 수로 빠라집니다
var pause = 10000 // 베너가 멈춰 있는 시간입니다. 숫자가 낮을 수록 멈추는 시간이 짧아집니다.
var topspace = 1 // 그냥 두세요.
var messages = new Array();

// 아래에 배너를 추가시키면 됩니다. [0] [1] [2] .... [n]
messages[0] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
messages[1] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
messages[2] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";



// 밑으로는 수정하지 마세요.

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

i =  (messages.length>2) ? 2 : 0;

function move1(whichlayer){
        tlayer=eval(whichlayer)
        if (tlayer.top>0&&tlayer.top<=topspace){
                tlayer.top=0
                setTimeout("move1(tlayer)",pause)
                setTimeout("move2(document.main.document.second)",pause)
                return
        }
        if (tlayer.top>=tlayer.document.height*-1){
                tlayer.top-=topspace
                setTimeout("move1(tlayer)",interval)
        }
        else{
                tlayer.top=scrollerheight
                tlayer.document.write(messages[i])
                tlayer.document.close()

                if (i==messages.length-1) i=0
                else i++
        }
}

function move2(whichlayer){
        tlayer2=eval(whichlayer)
        if (tlayer2.top>0&&tlayer2.top<=topspace){
                tlayer2.top=0
                setTimeout("move2(tlayer2)",pause)
                setTimeout("move1(document.main.document.first)",pause)
                return
        }
        if (tlayer2.top>=tlayer2.document.height*-1){
                tlayer2.top-=topspace
                setTimeout("move2(tlayer2)",interval)
        }
        else{
                tlayer2.top=scrollerheight
                tlayer2.document.write(messages[i])
                tlayer2.document.close()

                if (i==messages.length-1) i=0
                else i++
        }
}

function move3(whichdiv){
        tdiv=eval(whichdiv)
        if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=topspace){
                tdiv.style.top=0
                setTimeout("move3(tdiv)",pause)
                setTimeout("move4(second2_obj)",pause)
                return
        }
        if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
                tdiv.style.top=parseInt(tdiv.style.top)-topspace
                setTimeout("move3(tdiv)",interval)
        }
        else{
                tdiv.style.top=scrollerheight
                tdiv.innerHTML=messages[i]
                if (i==messages.length-1) i=0
                else i++
        }
}

function move4(whichdiv){
        tdiv2=eval(whichdiv)
        if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=topspace){
                tdiv2.style.top=0
                setTimeout("move4(tdiv2)",pause)
                setTimeout("move3(first2_obj)",pause)
                return
        }
        if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
                tdiv2.style.top=parseInt(tdiv2.style.top)-topspace
                setTimeout("move4(second2_obj)",interval)
        }
        else{
                tdiv2.style.top=scrollerheight
                tdiv2.innerHTML=messages[i]
                if (i==messages.length-1) i=0
                else i++
        }
}

function startscroll(){
        if (ie||dom){
                first2_obj=ie? first2 : document.getElementById("first2")
                second2_obj=ie? second2 : document.getElementById("second2")
                move3(first2_obj)
                second2_obj.style.top=scrollerheight
                second2_obj.style.visibility='visible'
        }
        else if (document.layers){
                document.main.visibility='show'
                move1(document.main.document.first)
                document.main.document.second.top=scrollerheight+topspace
                document.main.document.second.visibility='show'
        }
}

window.onload=startscroll

</script>
</head><body><ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>
<layer id="first" left="0" top="1" width="1" height="200" z-index="1">
    <p><script language="JavaScript1.2">
if (document.layers) document.write(messages[0])
</script>
</layer>
<layer id="second" left="0" top="0" width="1" height="200" z-index="1">
    <p><script language="JavaScript1.2">
if (document.layers) document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
</script>
</layer>
<p></ilayer>

<script language="JavaScript1.2">
if (ie||dom){
        document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
        document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
        document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
        document.write(messages[0])
        document.writeln('</div>')
        document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">')
        document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
        document.writeln('</div>')
        document.writeln('</div>')
        document.writeln('</div>')
}
</script>
</body>
</html>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
사회운동가 Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' [2] 2014.01.20 by 사회운동가
지구인500 간단한 질문 [7] file 2014.01.20 by 지구인500
착한부산남자 통합검색으로 검색을 해서 검색 결과 링크를 누르면 새탭으로 뜹니다. [4] 2014.01.20 by 착한부산남자
bonik 신디케이션을 깔았는데 그 이후로 섬네일 생성이 안됩니다. [5] file 2014.01.20 by bonik
루팡쿠팡 아무리 스팸차단을 해도 뚫리는데 어떻게 해야 할까요? [3] 2014.01.20 by 루팡쿠팡
산업공학과 default 레이아웃 메뉴바 수정 문의드립니다. [6] 2014.01.20 by 산업공학과
달자ㅋㅋ 이미 생성된 메뉴 페이지 타입 변경 여쭙니다. [4] file 2014.01.20 by 달자ㅋㅋ
사이트지원 다운로드 랭킹 위젯 mp3파일만 노출 [19] 2014.01.20 by 사이트지원
국가정보보안 가입인증 메일부분 관련 질문입니다. file  
베니마루 이거 자꾸 왜이래요??? [11] file 2014.01.20 by 부롱이
레드사봍텐 게시판의 댓글이 세로로 길게 나옵니다.. [8] file 2014.01.20 by 레드사봍텐
최르토스 [긴급] ie11에서 통합검색할 때 검색어 글자가 깨져서 나옵니다. [2] file 2014.01.20 by 최르토스
문화사랑 홈페이지 안열려요ㅠ [6] 2014.01.20 by KrteamENT
jeni660 서버이전후 디비정보들 수정의뢰 [3] 2014.01.20 by KrteamENT
오락실주인 신디케이션 블락도메인 노출 궁금점 ~ [4] file 2014.01.20 by KrteamENT
건즈 모듈업데이트 클릭하면 "페이지에 오류가 있습니다" 1.5.3.1 [1] file 2014.01.20 by 건즈
igoigo 포인트를 갱신하지 않고 월별 포인트 현황 보기 [1] 2014.01.20 by sejin7940
제대로만들자 쪽지 알림애드온 사용시 특정그룹은 안뜨게 할 수 있나요? [12] 2014.01.19 by 제대로만들자
모해 구글 페이지스피드 측정으로 본 속도개선 ... [2] 2014.01.19 by 모해
김훈123 도와주세요... ㅜㅜ [4] file 2014.01.19 by 김훈123