Facebook 评论插件是否有“onComplete”状态或类似状态?我正在尝试将 jScrollPane 滚动条添加到其中包含 FB Comments 的内容框。发生的情况是我将 FB Comments iframe 放置在框内容的顶部(就好像它具有绝对位置/浮动一样。猜测这与 jScrollPane 之后初始化的 FB Comments 有关。
Edit:
现在我真正想要的是结合 ColorBox、Facebook Comments 和 jScrollPane,但头痛很快就开始了:
$('.mybox').colorbox({ innerWidth: 640, innerHeight: 480, scrolling: false, onComplete: function() {
$('#cboxLoadedContent').jScrollPane({
// Init FB Comments here instead? Then call jScrollPane?
showArrows: true,
scrollbarWidth: 15,
scrollbarMargin: 0
});
},
onClosed: function() {
// What would happen here if I need to listen for FB Comments also?
$('#cboxContent').jScrollPaneRemove();
}
});
抱歉,如果我的问题有点不清楚,已经晚了,我已经在屏幕前呆了 10 多个小时了。
使用xfbml.render http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/事件:
FB.Event.subscribe('xfbml.render', function() {
console.log('Loaded!');
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)