1 i f 2 <--- 해석가능하시죠 ?

Posted
Filed under dog발;/javascript
$(function(){
     $.extend($.fn.disableTextSelect = function(){
          return this.each(function(){
               if($.browser.mozilla){     //Firefox
                    $(this).css('MozUserSelect','none');
               }else if($.browser.msie){     //IE
                    $(this).bind('selectstart',function(){ return false; });
               }else{     //Opera, etc.
                    $(this).mousedown(function(){ return false; });
               }
          });
     });     //No text selection on elements with a class of 'noSelect'
    
     $('.noSelect').disableTextSelect();
});
2016/07/05 15:30 2016/07/05 15:30