I have been working on a website where I recently integrated a Mootools slideshow. However, I encountered an issue where the menubar, which was supposed to drop horizontally, stopped displaying correctly. The menubar is utilizing jQuery. Upon inspecting the page source, I am uncertain whether there is a conflict between Mootools and JavaScript or if there is another underlying problem.
When attempting to use $.noConflict(), I am met with the following error in the script:
Uncaught TypeError: Object function (B,C){if(B&&B.$family&&B.uid){return B}var A=$type(B);return($[A])?$[A](B,C,this.document):null} has no method 'noConflict'
I have tried the suggested solution provided below, but it does not seem to be resolving the issue.
<script type="text/javascript" src="<%= ResolveUrl("~/Js/jquery-1.3.2.min.js") %>"></script>
<script type="text/javascript" src="<%= ResolveUrl("~/Scripts/SlideShow/js/mootools.js") %>"></script>
<script type="text/javascript" src="<%= ResolveUrl("~/Scripts/SlideShow/js/slideshow.js") %>"></script>
<script type="text/javascript" src="<%= ResolveUrl("~/Scripts/SlideShow/js/lightbox.js") %>"></script>
<script type="text/javascript">
// <![CDATA[
$.noConflict();
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// Additional JavaScript code for dropdown menu functionality
// ]]>
</script>
<script type="text/javascript">
//<![CDATA[
window.addEvent('domready', function(){
// Code for creating the Mootools Slideshow and Lightbox instances
});
//]]>
</script>