Tag: google plus

指定自定义URL到gplus一个按钮

我有这个代码 (function() { var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true; po.src = ‘https://apis.google.com/js/plusone.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s); })(); window.___gcfg = {lang: ‘es’}; (function() { var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true; po.src = ‘https://apis.google.com/js/plusone.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s); })(); 我在一个变量url有一个url: url = “http://www.mydomain.com/my_custom_url” 我想添加这个google plus按钮这个url变量。 […]

劫持页面像Google Plus一样滚动?

1)如果您有Google Plus帐户,请转到您的主页。 2)在右侧,有一个可以hover在其上的“添加到圆圈”按钮列表。 3)请注意,当您将鼠标hover在“添加到圆圈”下拉列表中时(如果您有足够的圆圈可以在下拉列表中滚动),则会禁用页面滚动function。 只允许在下拉列表中垂直滚动。 这是如何用javascript完成的? 我可以在此处滚动(右侧的滚动条),但在下拉时无法在页面主体上滚动。