如何解决jQuery冲突?

时间:2011-06-21 08:42:59

标签: javascript php jquery html javascript-events

我在magento中使用了超过3个javascript并且我尝试修复一些脚本(我认为冲突)并且它工作但是最后的jquery(jcarousel)它可以交换到另一个类别如果我点击tab新的到来和大多数流行,但现在它不工作..但如果我评论出手风琴js文件它的工作,但手风琴无法工作.. :(

点击此处:http://thaiamuletstore.com/main1/index.php

head.phtml


<?php echo $this->getCssJsHtml() ?>
<?php echo $this->getChildHtml() ?>


<link href="http://thaiamuletstore.com/main1/style/tabs.css" rel="stylesheet" type="text/css">
<link href="http://thaiamuletstore.com/main1/style/tabs.css" rel="stylesheet" type="text/css">
<link href="http://thaiamuletstore.com/main1/style/tango/skin.css" rel="stylesheet" type="text/css" />



<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/jquery.min.js"></script>



<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/Untlitie.js"></script>                           <!-- this-control-jcarousel-->

<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/470fe3190c7d0ea4aacc14677c226000.js"></script>   <!--this-control-Accordion-->

<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/jquery.jcarousel.min.js"></script>               <!-- this-control-jcarousel-->




<!--[if lt IE 8]>
<link rel="stylesheet" href="http://thaiamuletstore.com/main1/style/ie.css" type="text/css" media="screen" charset="utf-8" />
<![endif]-->





<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/hoverIntent.js"></script>

<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/superfish.js"></script>

<script type="text/javascript" src="http://thaiamuletstore.com/main1/js/organictabs.jquery.js"></script>

<script src=http://thaiamuletstore.com/main1/js/menu_effect/script.js" type="text/javascript"></script>

1 个答案:

答案 0 :(得分:0)

jQuery.noConflict();

这是你拯救的事情。