How title works in fancybox in a normal scenario:
for this script
$(".imagenes").fancybox();
1). for this html
<a class="imagenes" title="1a" alt="1b" href="images/01.jpg"><img
src="images/thumb01.jpg" title="2a" alt="2b"/></a>
- mouse over will show 2a as tooltip
- fancybox will show 1a as title
2). for this html
<a class="imagenes" alt="1b" href="images/01.jpg"><img src="images/
thumb01.jpg" title="2a" alt="2b"/></a>
- mouse over will show 2a as tooltip
- fancybox will show 2b as title
3). for this html
<a class="imagenes" alt="1b" href="images/01.jpg"><img src="images/
thumb01.jpg" title="2a" /></a>
- mouse over will show 2a as tooltip
- fancybox will show NO title at all
4). for this html
<a class="imagenes" title="1a" alt="1b" href="images/01.jpg">TEXT
LINK</a>
- mouse over will show 1a as tooltip
- fancybox will show 1a as title
5). for this html
<a class="imagenes" alt="1b" href="images/01.jpg">TEXT LINK</a>
- mouse over will show NOTHING
- fancybox will show 1b as title
NOW your case: If I understood right, you want a combination of
scenarios No. 1 and 2 but with the difference that scenario No. 2
shouldn't show any title in fancybox .... in other words, the alt
attribute in <img> tag shouldn't be used as title by fancybox, is that
correct?
I am not sure that there is a switch to disable this functionality but
you may want to use this script as a workaround:
function titleOnly(){return this.title;}
$(".imagenes").fancybox({
'title': titleOnly
});