javascript - FancyBox: one function only taken into account -


jquery(document).ready(function () {     jquery(".fancybox").fancybox({         helpers: {             title: {                 type: 'float'             }         },         beforeshow: function () {             this.title = '<div>' + jquery(this.element).next('div').html() + '</div>';         }     });      jquery("a.fancybox").fancybox({         tpl: {             next: '<a title="avanti" class="fancybox-nav fancybox-next"><span></span></a>',             prev: '<a title="indietro" class="fancybox-nav fancybox-prev"><span></span></a>'         }     }); }); 

the first part (.fancybox) "ignored", second (a.fancybox) taken account. if remove second, first taken account. -_-

you can see code i'm talking here: http://goo.gl/uuv5y unfortunately because it's live site left first part , removed tpl one..


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -