灯箱/其他JavaScript库冲突

时间:2011-06-26 04:22:10

标签: javascript jquery jquery-plugins

我正在处理的网站标题中有以下代码,但它们似乎彼此冲突。

<link href="tq.css" rel="stylesheet" type="text/css" media="screen" />
<script src="framework/mootools.js" type="text/javascript"></script>
<script src="slideshow/js/slideshow.js" type="text/javascript"></script>
<script src="slideshow/js/slideshow.kenburns.js" type="text/javascript"></script>
<link href="slideshow/css/slideshow.css" rel="stylesheet" type="text/css" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>

每当我在灯箱工作时添加下面的行时,Sideshow就会停止工作。我该如何解决?

<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>

1 个答案:

答案 0 :(得分:1)

使用jQuery noConflict。有关哪些信息,请访问:http://docs.jquery.com/Using_jQuery_with_Other_Libraries