Menu
  • HOME
  • TAGS

Thickbox jQuery

jquery,image,thickbox,shadowbox

single.jpg in this case is the main image file with normal resolution which will normally require more time to load single_t.jpg in this case is the thumbnail (t is used short for thumbnail) of the file with smaller size. Therefore, it would load faster....

How to close the dynamically added pop-up when user clicks anywhere on the page outside of that pop-up's surface?

javascript,jquery,jquery-ui-dialog,thickbox,pop-up

I do not use any sort of plugin for popup, but I have simple solution for you. On trigger, fade in an empty mask beside popup and make the mask an agent for fade out. Shown below. $(function(){ $('.clickme').click(function(){ $('.popup,.mask').fadeIn(); }); $('.mask').click(function(){ $('.popup,.mask').fadeOut(); }); }); .clickme{ display:inline-block; cursor:pointer; padding:10px; background:#00cfff;...