title: Fancybox link in title
body: <p>I'm trying to make a link inside the <code>fancybox</code> single image title. I want it to redirect me to another fancybox window, which is inline.</p>
  
  <p>I have a script that makes the whole single image a link, but this targets my document title instead of the anchor title...
  I really hope someone will have a solution or a better idea on how to do it! Thanks!</p>
  
  <p>btw: I have almost never worked indepthly with scripts...</p>
  
  <pre><code>$(document).ready(function() {
      $("a.fancybox").attr('rel', 'gallery').fancybox();
  
      $("a.fancylink").fancybox({
          'title': this.title,
          'titlePosition': 'over',
          'titleFormat': function() {
              return '&lt;span id="fancybox-title-over" style="background: url();"&gt;&lt;/span&gt;';
          },
          'onComplete': function() {
              goTo = this.title;
              $("#fancybox-title").css({
                  'top':'0',
                  'bottom':'0'
              }).bind('click', function() {
                  $.fancybox.close();
                  return document.location.href=goTo;
              });
          }
      });
  });
  </code></pre>