묻고답하기

다음 소스는 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 남기남
전영기 홈페이지 2개를 한군데에서 관리하는 방법 [1] 2007.08.10
aloha Naver의 경우- 열어본 페이지 목록 [3] 2007.08.10
재키 apm을 깔아서 파일 서버로 쓰고 있는데 보이는 파일이름이 너무 짧아요 [1] 2007.08.10
김상현 서버 아이피 질문입니다..  
조현웅 게시판에서 글 추출 질문입니다. [1] 2007.08.10
장윤수 Save For Web->gif로 저장하려고 하는데 계속 jpg로 저장이 되네요.. [1] 2007.08.10
이호 이런 선을 만드는 방법 아시나요.? [2] 2007.08.10
서봉수 웹 브라우저를 종료후 다시 실행하면 자동 로그인이 풀려요 (페이지 이동시 풀림과 다름) [1] 2007.08.10
노태권 psd 파일열기 할때.  
권경욱 쇼핑몰 운영시 주문하기를 누르면 주인핸드폰으로 문자가 오게 하는프로그래밍을 구하려고 합니다. [1] 2007.08.10
시러요 제로보드 노프레임에서 이미지주소 고정!! [2] 2007.08.10
박경우 플래쉬 스테이지에 관한 질문입니다.^^;; [1] 2007.08.10
^..애니아빠..^ 일본어 깨짐 현상에 대해서..  
차동민 도메인 [2] 2007.08.10
유병권 게시판안에 표를 넣어서 처리하고 싶습니다 [1] 2007.08.10
다솜 win 2003 + apm 에서 좋은 방화벽 추천 부탁드려요.  
유용환 php카운터에서 Mysql_result가 안된대여ㅠㅠ(고수님들좀도와주세요)  
장성주 서버셋팅 질문입니다 부탁드립니다 ㅠㅠ [1] 2007.08.10
곽흥식 그림에 마우스 오버시에 그림설명이 뜨는것!!! [2] 2007.08.10
강헌도 다른 질문입니다. 이미지 클릭시 다른위치에 있는 이미지를 바꿀 수 있는 방법좀 부탁드립니다.  
강헌도 새창띄울때 <a href = ''#'' 에서 #을 뺄 방법이 없을까요? [2] 2007.08.10
박원경 흐르는내용스크립트중에  
곽흥식 게시판에 내용에 그림을 넣었을때 클릭하면 새창이 뜨면서 그림이 생성되는거 막기!! [2] 2007.08.10
stylebiz jpg나gif 파일 저장시 bmp 파일로 저장되게 하기.. [1] 2007.08.10
박스 조건 만들기좀 알려주세요  
lhw3800 로딩중 스크립트와 움직이는 메뉴 같이 쓸수 없을까요?  
박동재 홈페이지를 만들때 어떤화면을 열고자할때 비번을 입력해야만 가능한 페이지를 어떻게 만들죠1? [2] 2007.08.10
신국희 이홈페이지 상단 메뉴에... [1] 2007.08.10
주의심판자 포토샵 배경에 대해 질문좀 드릴께요.  
꺼져 if조건문이 복잡할때 처리속도 및 실행순서에 대하여.. [2] 2007.08.10