我想访问show上的滑块并隐藏叠加层。
var slideToJumpTo = 5; //this changes
var modals = ({
init: function(){
$("div[rel]").overlay({
onBeforeLoad: function() {
//I want to be able to access the flexslider here.
//So I can do something like $('slider').jumpToSlide(slideToJumpTo) - dummy code
},
onLoad: function() {
$.getScript('/js/libs/jquery.flexslider-min.js', function() {
if ($('.overlay-carousel').length > 0) {
$('.overlay-carousel').flexslider({
});
}
});
},
onClose:function(){
}
});
}
});
我应该如何引用滑块?