开发者

JQuery issue with IE7

i've this piece of javascript calling a Fancybox function. I set the开发者_如何转开发 trigger click because I want to automatically open the fancybox when page loads. In every browser it's ok, except for IE 7 (compatibility mode).

$(document).ready(function() {          
    $("a#hidden_link").fancybox({
        'speedIn'       :   10, 
        'speedOut'      :   30, 
        'showCloseButton' : true,       
}).trigger('click');

IE7 shots this error: "Identificator, string or number is expected" on the last line when the .trigger('click') is called..

I can't figure out..thx


Extra comma on the second to last line. This is a somewhat nasty one as other browsers tend to be more lenient about it; the standard however doesn't allow an extra comma at the end of an object literal.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜