title: twitter bootstrap carousel link directly to a specific slide
body: <p>I am using twitter bootstrap carousel on my website to display a set of images. i am wondering if it is possible to allow a link to link to a specific slide in the carousel. So out of 10 slides a user can click a link to go directly to say slide 5 from a href link.</p>
  
  <p>Is this possible with bootstrap carousel or am i barking up the wrong tree?</p>
  
  <p><em>EDIT</em></p>
  
  <p>Hi, so i have added the following to my javascript under document.ready function.</p>
  
  <p>However typing in the url <code>www.example.com/models.php/5</code> doesnt do anything.<br>
  Am i doing something wrong?</p>
  
  <pre><code>var url = window.location.href;
  var slide = url.substring(url.lastIndexOf('/')+1); // 4
  goToSlide(slide);
  
  function goToSlide(number) {
      $("#MyCarousel").carousel(number);
  }
  </code></pre>