Fancybox not working - any advice?

℡╲_俬逩灬. 提交于 2019-12-13 04:36:25

问题


Helo! I am trying to implement Fancybox and I can't get it to work.

Here's what I have in my head:

<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.js"></script>
<link rel="stylesheet" href="../js/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="../js/fancybox/source/jquery.fancybox.pack.js"></script>

<script type="text/javascript">
$(document).ready(function() {

$("$fancybox").fancybox({
        'titlePosition'     : 'inside',
        'transitionIn'      : 'none',
        'transitionOut'     : 'none'
    });
});


</script>   

And here is what I have in my page:

    <a class="fancybox" href="../js/fancybox/source/fancybox_loading.gif" title="See Pricing">See Pricing</a>

I am actually wanting to get fancybox to display a div, but I can't even get it to display an image.

I would really appreciate any help!

来源:https://stackoverflow.com/questions/32447356/fancybox-not-working-any-advice

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!