title: Jquery Cycle Hash URL from Image Title Attribute
body: <p>I am using JQuery Cycle with a dynamically generated pager navigation. I am trying to figure out how to link to a specific slide using window.location.hash from the image title attribute. I figured out how to modified the plugin up until this point using this example (http://jquery.malsup.com/cycle/perma2.html#home), but it doesn't link. It just sends you back to the first slide. </p>
  
  <p>I referenced this stackoverflow support thread (http://stackoverflow.com/questions/4969752/display-anchor-instead-of-index-in-url-with-jquery-cycle), but they are using an existing pager navigation, not one that is generated on the fly. I'm still new to learning Jquery, so any guidance is appreciated!</p>
  
  <p>Here is the Jquery script:</p>
  
  <pre><code>$(function() {
  var h, 
      hash = window.location.hash, 
      hashes = {},
      index = 0;
  
  $('#slide img').each(function(i) {
      h = $(this).find('img').attr('title');
      hashes[h] = i;
  });
  
  if (hash)
      index = hashes[hash.substring(1)] || index;
  
  $('#slide').cycle({ 
      fx:     'fade', 
      startingSlide: index, // &lt;-- don't forget this!
      speed:  'fast', 
      timeout: 0,
      activePagerClass: 'active',
      pager:  '.timeline', 
      pagerAnchorBuilder: function(idx, slide) { 
          // return selector string for existing anchor 
          return '.timeline li:eq(' + idx + ') a';
      },
      after: function(curr,next,opts) {
          h = $(this).find('img').attr('title');
          window.location.hash = h;
      }
  });
  });
  </code></pre>