Strange Error when using FancyBox and jQuery

后端 未结 1 706
故里飘歌
故里飘歌 2021-01-27 19:54

I\'m getting an error when trying to use Fancybox

Firebug tells me

jQuery is not defined
f.length;a;)this.addEventListener(f[--...s.unbin

相关标签:
1条回答
  • 2021-01-27 20:05

    The jQuery line should be before the plugin line. That's why it says it's undefined, as it uses the jQuery library in its source.

    <script type="text/javascript" src="/Javascript/jquery-1.4.3.min.js"></script>
    <script type="text/javascript" src="/Javascript/jquery.mousewheel-3.0.4.pack.js"> </script>
    <script type="text/javascript" src="/Javascript/jquery.fancybox-1.3.4.pack.js">
    
    0 讨论(0)
提交回复
热议问题