-
jquery conflict
hi i use 2 jquery put it make conflict so one work other not
the ocdes are
first jquery
<!-- for header rotation -->
<link href="includes/header animation/css/screen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="includes/header animation/js/jquery.js"></script>
<script type="text/javascript" src="includes/header animation/js/easySlider1.5.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var dom = {};
dom.query = jQuery.noConflict(true);
$("#slider").easySlider({
auto: true,
continuous: true
});
});
</script>
the other
<!-- for latsest news module -->
<link rel="stylesheet" type="text/css" href="includes/latestnewsmodule/css/style.css" />
<script type="text/javascript" src="includes/latestnewsmodule/js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="includes/latestnewsmodule/js/jquery-easing-1.3.pack.js"></script>
<script type="text/javascript" src="includes/latestnewsmodule/js/jquery-easing-compatibility.1.2.pack.js"></script>
<script type="text/javascript" src="includes/latestnewsmodule/js/coda-slider.1.1.1.pack.js"></script>
<script type="text/javascript">
var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;
theInterval = function(cur){
clearInterval(theInt);
if( typeof cur != 'undefined' )
curclicked = cur;
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if(4 == curclicked )
curclicked = 0;
}, 3000);
};
$(function(){
$("#main-photo-slider").codaSlider();
$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");
$navthumb
.click(function() {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
return false;
});
theInterval();
});
</script>
i need fast help in this how to make both of them work togther???
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks