Changeset 200
- Timestamp:
- 06/16/08 14:18:02 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/lightbox/js/modal.js
r199 r200 260 260 This.navBtnStyle($('a.jq-modal-next',this.ctrl.box),true).css('height',Img.height()).bind('click',index+1,navClick); 261 261 This.navBtnStyle($('a.jq-modal-prev',this.ctrl.box),false).css('height',Img.height()).bind('click',index-1,navClick); 262 Img.click(function() { 263 This.modal.removeOverlay(); 264 }); 262 265 $(document).bind('keypress.modalImage',navKey); 263 266 }); … … 273 276 if (e.which == 110 && index+1 < This.links.length) { // Press "n" 274 277 This.showImage(index+1); 275 276 278 } 277 279 if (e.which == 112 && index != 0) { // Press "p" 278 280 This.showImage(index-1); 279 280 281 } 281 282 }; … … 285 286 var over_bg_i = next ? this.modal.params.next_img : this.modal.params.prev_img; 286 287 var over_bg_p = next ? 'right' : 'left'; 287 btn.css('background',default_bg).hover(function() { 288 289 btn.css('background',default_bg) 290 .bind('mouseenter',function() { 288 291 $(this).css('background','transparent url(' + over_bg_i + ') no-repeat center ' + over_bg_p).css('z-index',110); 289 },function() { 292 }) 293 .bind('mouseleave',function() { 290 294 $(this).css('background',default_bg); 291 295 });
Note: See TracChangeset
for help on using the changeset viewer.