title: conflict between click.funcion and bootstraps' carousel buttons
body: <p>I want to use bootsraps carousel and smooth scrolling with jquery.</p>
  
  <p>Here is how I make smooth scrolling:</p>
  
  <pre><code> $('a[href*=#]:not([href=#])').click(function() {
      if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
          || location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
         if (target.length) {
           $('html,body').animate({
               scrollTop: target.offset().top
          }, 2000);
          return false;
      }
  }
  });
  </code></pre>
  
  <p>I assumed this code prevents functions of carousel buttons. How can I modify it in a way that it doesnt affects carousel buttons.</p>
  
  <p>Note that I am complete beginner at web development.</p>
  
  <p>Thanks.</p>