0

我在这个页面上有 jQuery LavaLamp 2 和 FancyBox 2。我花了几个小时才发现 FancyBox 与 LavaLamp 冲突。当我拿出这两个包括

<script type="text/javascript" src="menu/easing.js"></script>
<script type="text/javascript" src="menu/jquery.js"></script>

FancyBox 有效,但 LavaLamp 无效。试图切换 Jqueries ( FancyBox 将采用 LavaLamp ),没有奏效。

有什么建议么?

这是fancybox包括:

<!-- Add jQuery library -->
<!-- <script type="text/javascript" src="/Include/FancyBox/lib/jquery-1.7.2.min.js"></script> -->

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="/Include/FancyBox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="/Include/FancyBox/source/jquery.fancybox.js?v=2.0.6"></script>
<link rel="stylesheet" type="text/css" href="/Include/FancyBox/source/jquery.fancybox.css?v=2.0.6" media="screen" />

<!-- Add Button helper (this is optional) -->
<link rel="stylesheet" type="text/css" href="/Include/FancyBox/source/helpers/jquery.fancybox-buttons.css?v=1.0.2" />
<script type="text/javascript" src="/Include/FancyBox/source/helpers/jquery.fancybox-buttons.js?v=1.0.2"></script>

<!-- Add Thumbnail helper (this is optional) -->
<link rel="stylesheet" type="text/css" href="/Include/FancyBox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.2" />
<script type="text/javascript" src="/Include/FancyBox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.2"></script>

<!-- Add Media helper (this is optional) -->
<script type="text/javascript" src="/Include/FancyBox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script>

编辑:我已经升级了缓动版本,并且 FancyBox 可以工作。但是,LavaLamp 不是。

另一个编辑:设法解决问题。刚刚下载了最新的 easing.js 和 easing.compatibility

4

0 回答 0