我有一个照片库fancybox,当fancybox是在tittle外面打开看起来像一个按钮。问题是,这是行不通的。按钮像Facebook不敢与fancybox工作
这里我JS:
$(".fancyboxi").fancybox({
padding: 0,
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
closeBtn : true,
helpers: {
overlay: {
css: {'background-color': '#333'}
},
title : {
type: 'outside'
}
},
beforeShow: function() {
if (this.title) {
var titulo=this.href;
// Add tweet button
this.title += '<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-url="http://kingpollo.it/'+ titulo + '">Tweet</a>';
// Add FaceBook like button
this.title += '<iframe src="//www.facebook.com/plugins/like.php?href=http://kingpollo.it/'+ titulo + '&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:23px;" allowTransparency="true"></iframe>';
}
},
afterShow: function(){
twttr.widgets.load();
},
nextEffect: 'fade',
prevEffect: 'fade'
}); // fancybox});
Twitter的按钮正常工作。为什么FB按钮没有?
你能提供链接问题或复制问题的小提琴吗? –
http://kingpollo.it/elaborati.php(网页是underconstruction:P) – berti
我可以看到FB按钮,有什么问题? –