fancyapps/fancyBox — pull request #378 by hopsoft (2012-09-12 04:47:10+00:00)
Title: Added support for dynamic titles

I've added support for assigning a function to the title option which allows me to do this.

```javascript
$(".fancybox").fancybox({
title: function(element) {
return element.attr("title") + "
" + element.data("detail");
}
});
```

I'm actually using Underscore.js templates with more sophisticated HTML, but using simple inline HTML is a quick way to illustrate the concept.