Question

I'm using a jquery plug-in scrolling plug-in called smint which is working fine, but as soon as I add in a nivo slider plug-in, smint stops working. I've followed the steps i've read in order to resolve this issue but I can't seem to find a fix. Can anyone kindly help?

Here's the header code;

<script type="text/javascript" src="js/jquery.smint.js"></script>

<script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>

<script type="text/javascript">

    jQuery.noConflict();

    jQuery(document).ready( function() {
        jQuery('.subMenu').smint({
            'scrollSpeed' : 1000
        });
    });

    jQuery(window).load(function() {
        jQuery('#slider').nivoSlider();
    });

</script>
Was it helpful?

Solution

As yoou use noConflict() ,instead of $ sign use , jQuery. You need to include jQuery.noConflict(); once ,not twice.

jQuery.noConflict();
jQuery(document).ready( function() {
jQuery('.subMenu').smint({
    'scrollSpeed' : 1000
});
});

jQuery(window).load(function() {
jQuery('#slider').nivoSlider();
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top