开发者

Strange Error when using FancyBox and jQuery

开发者 https://www.devze.com 2023-03-17 00:59 出处:网络
I\'m getting an error when trying to use Fancybox Firebug tells me jQuery is not defined f.length;a开发者_StackOverflow;)this.addEventListener(f[--...s.unbind(\"mousewheel\",a)}})})(jQuery);

I'm getting an error when trying to use Fancybox

Firebug tells me

jQuery is not defined

f.length;a开发者_StackOverflow;)this.addEventListener(f[--...s.unbind("mousewheel",a)}})})(jQuery);

I'm positive that all the paths to script and style files are correct.

<script type="text/javascript" src="/Javascript/jquery.mousewheel-3.0.4.pack.js"> </script>
<script type="text/javascript" src="/Javascript/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="/Javascript/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#Enlarge").fancybox({
    'titleShow'     : false,
    'transitionIn'  : 'elastic',
    'transitionOut' : 'elastic',
    'easingIn'      : 'easeOutBack',
    'easingOut'     : 'easeInBack'
});});
</script>


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

精彩评论

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