控制 ShareThis javascript 窗口的打开
我刚刚开始使用 ShareThis Widget 来帮助处理与我们网站之一的社交媒体集成。虽然功能很棒,但我觉得如果我手动编写每个项目,我会失去很多功能,例如通过单击“共享”功能来控制打开的窗口大小的能力。
虽然他们的网站显示了可以添加到按钮(网址等)的基本功能,但我希望自定义感觉,这样当单击按钮时,我可以控制该窗口的大小,甚至可以在现有的颜色框片段中打开。
以前有人有过这样的运气吗?当我尝试通过 javascript 函数进行控制时,它似乎被覆盖或忽略。
I have just started using ShareThis Widget to help handle social media integration with one of our sites. While the functionality is great, I feel I lose a lot of the capabilities I have if I were to code each item by hand, such as the ability to control the size of the windows opened by clicking a 'share' functionality.
While their site shows basic functions you can add to the buttons (url, etc) I am looking to customize the feel such that when a button is clicked, I can control the size of that window or even possibly open in an existing colorbox snippet.
Has anybody had luck with this before? When I try to control via javascript function it just seems to get overwritten or ignored.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要解除它们的事件的绑定并亲自处理它们。这可能不是一个好主意,因为您的代码将受其实现的支配。
You'd need to unbind their events and handle them all yourself. It probably isn't a good idea, as your code will be at the mercy of their implementation.
我不确定你的问题是否得到解决,但你需要在 JS 中添加如下内容。
他们的支持页面
I am not sure if your question is resolved, but you will need to add as following inside JS.
The same is on their Support Page