WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
custom jquery scrollbars (1 post)

  1. willcm
    Member
    Posted 9 months ago #

    Hi,

    I would like to use a custom scrollbar with Colorbox

    All the custom scrollbar files have been loaded as per the instructions. I'm guessing that I need to apply to the #cboxLoadedContent div so I've loaded as per this code, however it's not working:

    (function(jQuery){
        jQuery(window).load(function(){
            jQuery("#cboxLoadedContent").mCustomScrollbar();
        });
    })(jQuery);

    Using Firebug there's no alteration to the standard coding i.e. the JavaScript isn't firing. However if I add to the div #cboxContent the JavaScript fires and a class mCustomScrollbar _mCS_1 is added to the #cboxContent div. But this doesn't have a scrollbar so nothing is shown.

    The question is why isn't it working on the right div i.e. #cboxLoadedContent?

    http://wordpress.org/plugins/jquery-colorbox/

Reply

You must log in to post.

About this Plugin

About this Topic