eugenii / jqueryrotate

Automatically exported from code.google.com/p/jqueryrotate
1 stars 0 forks source link

jQuery Conflict in WP. #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<script type='text/javascript' 
src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type="text/javascript" 
src="http://jqueryrotate.googlecode.com/svn/trunk/jQueryRotate.js"></script>

My problem is that in WordPress i have LayerSlider using the latest jQuery 
library, and it loads it's own. How can i get jQueryRotate to use the one thats 
already loaded in the project? If i remove the top line (1.7.1) the script 
doesn't work at all. Any suggestions?

<script type='text/javascript'>//<![CDATA[ 
$(window).load(function(){
$('img.menuimg').rotate({ 
   bind: 
     { 
        mouseover : function() { 
            $(this).rotate({
center: ["50%", "68%"],
animateTo:100,

})
        },
        mouseout : function() { 
            $(this).rotate({

center: ["50%", "68%"],
animateTo:0,

})
        }
     } 

});
});//]]>  

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ryangoug...@gmail.com on 23 Jul 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Well a jQueryRotate needs jquery to load, so make sure that you include 
jQueryRotate.js after jquery is loaded (check where its being added into 
document, probably somewhere at the bottom of a <body>)

Original comment by wil...@gmail.com on 23 Jul 2013 at 11:29

GoogleCodeExporter commented 9 years ago
That's what i though. I've done this:

This site shows that the jquery lib on line 55 is loaded before my scripts and 
the jQueryRotate on lines 96

Original comment by ryangoug...@gmail.com on 23 Jul 2013 at 11:52

GoogleCodeExporter commented 9 years ago
Sounds pretty weird, try maybe first replacing 1.7.1 with most recent version 
of jQuery - maybe it breaks plugin somehow? Other idea would be to check if 
that LayerSlide includes whole jQuery or only its part.

Original comment by wil...@gmail.com on 23 Jul 2013 at 11:54

GoogleCodeExporter commented 9 years ago
Looks like the whole lot from here, the header is 
/*! jQuery v1.8.3 jquery.com | jquery.org/license */

** RESOLVED.

Updated to the latest 1.10.1 seemed to solve all my problems.

Original comment by ryangoug...@gmail.com on 23 Jul 2013 at 12:07