-2
가능한 중복 :
내 JS 코드입니다
Preload Function전화 예압 기능
. https://github.com/nathansearles/Slides/blob/master/source/slides.js
preload : function() {
$('.slidesContainer').css({
backgroundImage: "url(img/loading.gif)",
backgroundPosition: "50% 50%",
backgroundRepeat: "no-repeat"
});
this._loadImage(this.slides.eq(this.options.startAtSlide - 1).attr("src")).then($.proxy(function(url) {
this.slidesControl.fadeIn(this.options.fade.interval);
this._trigger("loaded", this.options.startAtSlide, this);
},this));
},
어떻게이 코드를 사용할 수 있습니까? 저는 $ ("# slides") 슬라이드 ("preload")라고 부릅니다. 그러나 $ ("# slides")를 사용한다면 slides(); before $ ("# slides"). slides ("preload"); 그것이 작동합니다. 나는 오직 예고편 만 부를 수있다. 슬라이더 이후
감사합니다 ..
왜 그렇게하고 싶습니까? 그것은 아무 의미가 없습니다. 그것은 jQuery 플러그인이며 ".slides()"초기화 루틴을 실행할 때까지는 다른 메소드가 작동하지 않을 수 있습니다. – Pointy
Ok Kling 미안 해요. 그러나 나는 4 일 이상 이래로 질문을한다. 답변 없음 : ( – cmpone
Pointy 슬라이더에 추가 한 후에 이미지를 업로드하고 싶습니다. 추가하고 있지만 슬라이더를 표시하지 않습니다. – cmpone