I am trying to add a photo slider from Wowslider that use jQuery v1.8.3 in my website that has a navigation menu based on jQuery but I don't know the exact version (here is the tutorial where I took the source files )
When comment out one of the two jquery.js files the other one works fine. However, together something is going wrong I can't make a slider from Wowoslider and an animations menu work together correctly.
The code in my HTML is these. the problems comes with js/jquery.js(unknown version) and engine1/jquery.js(1.8.3 version)
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-bp.js"></script>
<script type="text/javascript" src="js/navigation.js"></script>
<script type="text/javascript" src="date_time.js"></script>
<!-- Start WOWSlider.com HEAD section -->
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<script type="text/javascript" src="engine1/jquery.js"></script>
<!-- End WOWSlider.com HEAD section -->
</head>
I try this Can I use multiple versions of jQuery on the same page?
The solution seems simple but i can't understand this
Then, instead of $('#selector').function();
, you'd do jQuery_1_3_2('#selector').function();
or jQuery_1_1_3('#selector').function();
.
I change my including scripts code in my html like this:
<!-- load jQuery 1.2.3 -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
var jQuery_1_2_3 = $.noConflict(true);
</script>
<!-- ...other code... -->
<!-- load jQuery 1.8.3 -->
<script type="text/javascript" src="engine1/jquery.js"></script>
<script type="text/javascript">
var jQuery_1_8_2 = $.noConflict(true);
</script>
Then i try to change the code of 2 .js file that use jQuery 1.2.3
so i replace all the $
chars with this jQuery_1_2_3
an sort example default is
(function($) { $.extend($.fx.step,{ backgroundPosition: function(fx) { if (fx.state === 0 && typeof fx.end == 'string') { var start = $.curCSS(fx.elem,'backgroundPosition');
And i change to this:
(function(jQuery_1_2_3) {
jQuery_1_2_3.extend(jQuery_1_2_3.fx.step,{
backgroundPosition: function(fx) {
if (fx.state === 0 && typeof fx.end == 'string') {
var start = jQuery_1_2_3.curCSS(fx.elem,'backgroundPosition');
I think i understand something wrong.. Steel dont working..