jquery冲突

时间:2012-07-05 07:05:07

标签: jquery conflict

我有一个在全屏画廊页面上滑出的联系表单。 jquery代码是冲突的,搞乱了画廊。有任何想法吗? 我尝试删除第二个jquery库,甚至在每个脚本中添加noconflict函数。

<body>
<div id="gallery_nav" style="height:30px;padding-top:5px;">
 <div class="logo"><a href="/">df</a></div>
<a href="/">Home</a>
<a href="/about">About Me</a>
<a href="/specials">Specials</a>
</div>

<div id="contactable"></div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2    /jquery.js">   </script>
<script type="text/javascript" src="/contactme/jquery.contactable.min.js"></script>
<link rel="stylesheet" href="/contactme/contactable.css" type="text/css" />
<script>
contact form scripts goes here
</script>

<div for full screen images goes here>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js"> </script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script>
script for image gallery goes here
</script>

1 个答案:

答案 0 :(得分:0)

尝试切换:gallery first(1.3)和脚本(1.7.2)。

尝试用jQuery替换$ jQuery.noConflict();