1

주제: 갤러리에서.. 기능추가..

예전에는 있던기능인데..

갤러리에서(이메이징에서 말고).. 슬라이드 형식으로 보고 싶은데..

gallery.js 쪽 소스에 Zoom옆에 Slide 아이콘도 추가했고..

TTGallery.prototype.slide = function()
{
};
위 함수도 만들어서.. 아이콘 클릭하면 연결되게는 했는데..

그 함수에서 슬라이드식으로 3초에 한장씩 뒤로 넘기게 할려고 하는데..

안되네요..

어떻게 해야하는지..ㅠㅠ

2

답글: 갤러리에서.. 기능추가..

... 소스를 보여주셔야... ㅡㅡ

3

답글: 갤러리에서.. 기능추가..

태터툴즈 스크립트폴더에 있는 gallery.js 그대로고요..

control.innerHTML = '(' + (this.offset + 1) + '/' + this.numImages + ') <a href="#" onclick="document.getElementById(\'' + this.containerId + '\').instance.prev(); return false" style="border: 0px"><img src="' + servicePath + '/image/gallery_prev.gif" width="20" height="16" alt="PREVIOUS" style="vertical-align: middle"/></a> <a href="' + this.src[this.offset] + '" rel="' + enlargelb + '" title="' + captionText + '" style="border: 0px" target="_blank"><img src="' + servicePath + '/image/gallery_enlarge.gif" width="27" height="19" alt="ZOOM" title="' + captionText + '"  style="vertical-align: middle"/></a> <a href="#" onclick="document.getElementById(\'' + this.containerId + '\').instance.slide(); return false" style="border: 0px"><img src="' + servicePath + '/image/gallery_slide_off.gif" width="27" height="19" alt="SLIDE" style="vertical-align: middle"/></a> <a href="#" onclick="document.getElementById(\'' + this.containerId + '\').instance.next(); return false" style="border: 0px"><img src="' + servicePath + '/image/gallery_next.gif" width="20" height="16" alt="NEXT" style="vertical-align: middle"/></a>';

이부분을 위와 같이 변경했고..

TTGallery.prototype.slide = function()
{
};
위 함수는 함수만 만들어놓은겁니다.. 여러개 넣어서 해봤는데.. java를 잘몰라서 그런지 안되네요..

this.show(this.offset+1);

그냥 이렇게 넣으면 한번 다음으로 넘어 가긴하는데..

계속 해서 반복해서 할려고

setTimeout도 써봤는데 잘못썻는지 되지가 않네요

조진원 (2006-08-23 16:44:27)에 의해 마지막으로 수정