Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amobaroti

    (@amobaroti)

    Thread Starter amobaroti

    (@amobaroti)

    After much head scratching, late nights and weeks, maybe 4, getting this to work by adding code, removing code, following tutorials and searching all forums, at the point when I had decided to give up my last attempt at code moderation produced the desired results.

    I used the following to get both scripts to worh at the same time.

    For the S3slider https://www.olorimag.com

    <script type="text/javascript">
    
      jQuery.noConflict();
    
    $(document).ready(function() {
       $('#slider').s3Slider({
          timeOut: 2000
       });
    })
    </script>

    For the Jcarousel https://www.olorimag.com/category/be-entertained/

    <script type="text/javascript">
    
    function mycarousel_initCallback(carousel)
    {
        // Disable autoscrolling if the user clicks the prev or next button.
        carousel.buttonNext.bind('click', function() {
            carousel.startAuto(0);
        });
    
        carousel.buttonPrev.bind('click', function() {
            carousel.startAuto(0);
        });
    
        // Pause autoscrolling if the user moves with the cursor over the clip.
        carousel.clip.hover(function() {
            carousel.stopAuto();
        }, function() {
            carousel.startAuto();
        });
    };
    
    jQuery = jQuery.noConflict();
    
    jQuery(document).ready(function() {
        jQuery('#mycarousel').jcarousel({
    
    		auto: 3,
    		scroll: 1,
            wrap: 'circular',
    		visible: 5,
            initCallback: mycarousel_initCallback
        });
    });

    I hope this helps someone in future

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jcarousel and S3slider clash’ is closed to new replies.