Formatting A Title For Fancybox
I don't know javascript at all, but I am trying to format my titles/captions for my pictures that are being displayed using FancyBox. In my title attribute in my tag, I h
You can break your title in two lines like that:
'titleFormat': function(title, currentArray, currentIndex, currentOpts){
temp=title.split('|');
if(!temp[1]){temp[1]=""};
return'<div>'+temp[0]+'</div><div>'+temp[1]+'</div>'
},
K
Post a Comment for "Formatting A Title For Fancybox"