Dotclear

Changeset 200


Ignore:
Timestamp:
06/16/08 14:18:02 (15 years ago)
Author:
olivier
Message:

Changes in modal box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/lightbox/js/modal.js

    r199 r200  
    260260                         This.navBtnStyle($('a.jq-modal-next',this.ctrl.box),true).css('height',Img.height()).bind('click',index+1,navClick); 
    261261                         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                         }); 
    262265                         $(document).bind('keypress.modalImage',navKey); 
    263266                    }); 
     
    273276                    if (e.which == 110 && index+1 < This.links.length) { // Press "n" 
    274277                         This.showImage(index+1); 
    275                           
    276278                    } 
    277279                    if (e.which == 112 && index != 0) { // Press "p" 
    278280                         This.showImage(index-1); 
    279                           
    280281                    } 
    281282               }; 
     
    285286               var over_bg_i = next ? this.modal.params.next_img : this.modal.params.prev_img; 
    286287               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() { 
    288291                    $(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() { 
    290294                    $(this).css('background',default_bg); 
    291295               }); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map