简体   繁体   English

控制ShareThis javascript窗口打开

[英]Controlling the ShareThis javascript window opens

I have just started using ShareThis Widget to help handle social media integration with one of our sites. 我刚刚开始使用ShareThis窗口小部件来帮助处理与我们网站之一的社交媒体集成。 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. 虽然他们的网站显示了基本功能,但您可以将它们添加到按钮(URL等)中,我希望定制这种感觉,以便在单击按钮时,我可以控制该窗口的大小,甚至可以在现有的颜色框代码段中打开。

Has anybody had luck with this before? 有人有过运气吗? When I try to control via javascript function it just seems to get overwritten or ignored. 当我尝试通过javascript函数进行控制时,它似乎被覆盖或忽略了。

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. 这可能不是一个好主意,因为您的代码将受其实现的支配。

I am not sure if your question is resolved, but you will need to add as following inside JS. 我不确定您的问题是否解决,但是您需要在JS内添加以下内容。

popup: 'true'

The same is on their Support Page 他们的支持页面上也是如此

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM