0
在這裏我有jquery已點擊它只有當我點擊一個李,但我想讓它在頁面加載工作,請幫助...!如何使點擊事件加載事件jquery
//User clicks on a city/gallery;
$fp_galleries.bind('click',function(){
$fp_galleries.removeClass('current');
var $gallery = $(this);
$gallery.addClass('current');
var gallery_index = $gallery.index();
if(gallery_idx == gallery_index)
return;
gallery_idx = gallery_index;
//close the gallery and slider if opened
if($fp_thumbContainer.data('opened')==true){
$fp_scrollWrapper.fadeOut();
$fp_thumbContainer.stop().animate({'height':'0px'},200,function(){
openGallery($gallery);
});
}
else
openGallery($gallery);
});