0
我使用這個變焦圖像腳本大拇指加載到較大的圖像: http://www.eyecon.ro/zoomimage/#implement如何通過jquery添加更多內容再次加載函數?
麻煩的是我加載畫廊中的頁面使用jQuery負載(下面的代碼)加載之後:
//Remove tab info and add gallery
$(".more").click(function() {
var $gallery = $(this).closest('.tab').find('.gallery'),
cat = $(this).attr('href').split('cat=')[1];
if ($gallery.is(':empty')) {
$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat}, function(){
$(this).fadeIn();
});
}
$gallery.siblings().fadeOut(function(){
$gallery.fadeIn();
});
return false;
});
麻煩的是這個腳本創建在飛行畫廊所以下面的代碼將無法正常工作
<script type="text/javascript">
$(document).ready(function() {
$('a.customGal').zoomimage();
});
</script>
我怎麼能在上面的代碼工作,一旦庫被加載,從而運行函數完成?
我試圖添加$('a.customGal')。zoomimage();在.load中但它仍然不起作用。
對不起,我只是剛剛注意到這個帖子... – Andy 2010-11-30 20:53:43