初始化 Facebook 评论后加载 jScrollPane - 如何?
Facebook 评论插件是否有“onComplete”状态或类似状态?我正在尝试将 jScrollPane 滚动条添加到其中包含 FB Comments 的内容框。发生的情况是我将 FB Comments iframe 放置在框内容的顶部(就好像它有绝对位置/浮动一样。猜测这与 jScrollPane 之后初始化的 FB Comments 有关。
编辑:
现在我真正想要的是结合 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 多个小时了。
Is there an "onComplete" state or similar for the Facebook Comments plugin? I'm trying to add a jScrollPane scrollbar to a content box that has FB Comments inside it. What happens is I get the FB Comments iframe placed on top of the box's content (as if it had an absolute position / was floating. Guessing this has to do with FB Comments initializing after jScrollPane.
Edit:
Now what I'm really after is combining ColorBox, Facebook Comments and jScrollPane and the headache starts pretty soon:
$('.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();
}
});
Sorry if my question is a bit unclear, it's late and I've been in front of a screen for 10+ hours.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
xfbml.render
事件:Using the
xfbml.render
event: