开发者

Jquery Fancybox fails to show image

开发者 https://www.devze.com 2023-03-23 21:01 出处:网络
I don\'t know why it fails bu开发者_Go百科t when you click a link that is an image, fancybox fails showing a message like, \"The requested content cannot be loaded...\". I\'ve checked the href( is set

I don't know why it fails bu开发者_Go百科t when you click a link that is an image, fancybox fails showing a message like, "The requested content cannot be loaded...". I've checked the href( is set dynamically) and its the correct path. I initialized the fancybox like so $("a.fancybox").fancybox(), which is basically all links that is of type fancybox. It use to work but for some reason it doesn't work anymore. Relative nor direct path works. Any clue?


If I am not mistaken, the fancybox() plugin uses the class fancybox - what might be happening is that you are conflicting that class name. try naming the class a_fancybox and see if things change.

0

精彩评论

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