0

为什么下面的代码会导致Firebug上线报错$('#galleria').galleria({

      $('#galleria').galleria({
              dataSource: data,
              width:930,
              height:575,
              transition: 'fade',
              carousel: 'true' ,
              carouselSpeed: 1200  ,
              showCounter :'false',
              showImagenav : 'false',
              showInfo : 'false',
              imageCrop : 'true',
              maxScaleRatio: 1,


              extend: function() {
                this.bind(Galleria.LOADFINISH, function(e) {
                 $(e.imageTarget).css('cursor','pointer').click(this.proxy(function(e) {
                   e.preventDefault(); // removes the garbage
                   $.fancybox({

                        $('#galleria').galleria({ 
                            width: 500,
                            height: 500
                        });        

                   });
                }))
               });
              }       
        });
4

2 回答 2

2
$.fancybox({

        $('#galleria').galleria({ 
            width: 500,
            height: 500
        });        

   });

在语法上无效。

于 2011-06-03T15:41:29.977 回答
0

我不是专家,但你错过了一个;after}))吗?

像这样:

       $(e.imageTarget).css('cursor','pointer').click(this.proxy(function(e) {
               e.preventDefault(); // removes the garbage
               $.fancybox({

                    $('#galleria').galleria({ 
                        width: 500,
                        height: 500
                    });        

               });
            })); //here
于 2011-06-03T15:36:58.827 回答