javascript - Fancybox close button doesn't show -


this code jquery fancybox gallery. reason close button not showing. please me. want use own close button. in browser when inspect background image deleted in right folder. there line on image.

$(window).load(function(){   // gallery if(jquery("#gallery").length){       // fancybox     jquery("#gallery li a").fancybox({         "titleshow" : false,         "transitionin"  : "elastic",         "transitionout" : "elastic",                     "showclosebutton" : true     });       var totalimages = jquery("#gallery > li").length,          imagewidth = jquery("#gallery > li:first").outerwidth(true),         totalwidth = imagewidth * totalimages,         visibleimages = math.round(jquery("#gallery-container").width() / imagewidth),         visiblewidth = visibleimages * imagewidth,         stopposition = (visiblewidth - totalwidth);      jquery("#gallery").width(totalwidth);       jquery("#gallery-prev").click(function(){         if(jquery("#gallery").position().left < 0 && !jquery("#gallery").is(":animated")){             jquery("#gallery").animate({left : "+=" + imagewidth + "px"});         }         return false;     });      jquery("#gallery-next").click(function(){         if(jquery("#gallery").position().left > stopposition && !jquery("#gallery").is(":animated")){             jquery("#gallery").animate({left : "-=" + imagewidth + "px"});         }         return false;     });    }  }); 


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

java.util.scanner - How to read and add only numbers to array from a text file -