Hey guys, trying to get the jQuery.noconflict(); to work with my mootools implementation.
Not having any joy, but I'm feeling particularly off it.
Where am I going wrong?
I've also tried the noconflict in the jQuery126.js file.Code:<script src="<?php bloginfo('template_directory'); ?>/includes/js/mootools.v1.11.js" type="text/javascript"></script> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/mootabs1.2.js"></script> <script src="<?php bloginfo('template_directory'); ?>/includes/js/jd.gallery.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/includes/js/jd.gallery.transitions.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/includes/js/jquery-1.2.6.min.js" type="text/javascript"></script> <script type="text/javascript"> jQuery.noConflict(); (function($) { $(function() { // more code using $ as alias to jQuery }); })(jQuery); // other code using $ as an alias to the other library $(document).ready(function(){ $("#contactLink").click(function(){ if ($("#contactForm").is(":hidden")){ $("#contactForm").slideDown("slow"); } else{ $("#contactForm").slideUp("slow"); } }); }); function closeForm(){ $("#messageSent").show("slow"); setTimeout('$("#messageSent").hide();$("#contactForm").slideUp("slow")', 2000); } </script>
I'm working with MooTools 1.1.1 and jQuery 1.2.6.


LinkBack URL
About LinkBacks
Reply With Quote