Calling a colorbox from a bxslider slide
I have bxSlider set up with one of the slides being a colorbox ligtbox, but I can't get the bxslider image or a link to open the colorbox. Here is my code:
- $(document).ready(function() {
- var $gallery = $('a.slideGroup').colorbox({rel:'slideGroup',@trans, @slideshow, slideshowSpeed: 4000, @showTitles });
-
- $("a#openGallery").click(function(e){
- e.preventDefault();
- $gallery.eq(0).click();
- });
-
- $('a.slideGroup').colorbox({onComplete:function(){
- $('#cboxTitle').css('color', '#800000 !important');
- }});
-
- $('a.slideGroup').colorbox({onComplete:function(){
- var cboxTitleHeight = $('#cboxTitle').height();
- var cboxContentHeight = $('#cboxContent').height();
- var cboxWrapperHeight = $('#cboxWrapper').height();
- var colorboxHeight = $('#colorbox').height();
- var cboxPhotoHeight = $('.cboxPhoto').height();
-
- $('#cboxMiddleLeft, #cboxMiddleRight, #cboxContent').css('height', (cboxContentHeight + cboxTitleHeight) + 'px');
- $('#cboxWrapper').css('height', (cboxWrapperHeight + cboxTitleHeight) + 'px');
- $('#colorbox').css('height', (colorboxHeight + cboxTitleHeight) + 'px' );
- $('#cboxLoadedContent').css('height', (cboxTitleHeight + cboxPhotoHeight) + 'px'
- }});
- });
Here is the page I am using it on: