Google plus 如何更改Gigya共享栏上Google Plus共享按钮的外观?
我正试图改变Gigya共享栏上Google Plus共享按钮的外观。我可以更改其他按钮(Facebook、Twitter等)的外观,但Google plus按钮会忽略Gigya指定的iconImgUp参数,并恢复为默认外观 我正在使用以下参数设置:Google plus 如何更改Gigya共享栏上Google Plus共享按钮的外观?,google-plus,gigya,Google Plus,Gigya,我正试图改变Gigya共享栏上Google Plus共享按钮的外观。我可以更改其他按钮(Facebook、Twitter等)的外观,但Google plus按钮会忽略Gigya指定的iconImgUp参数,并恢复为默认外观 我正在使用以下参数设置: gigya.socialize.showShareBarUI({ containerID : 'share-bar', shareButtons : [{provider: 'Facebook', enableCount: 'fals
gigya.socialize.showShareBarUI({
containerID : 'share-bar',
shareButtons : [{provider: 'Facebook', enableCount: 'false', iconOnly:'true', iconImgUp:'images/facebook.jpg', iconImgOver:'images/facebookdown.jpg'},
{provider: 'googleplus-share', enableCount: 'false', iconOnly:'true', iconImgUp: 'images/facebook.jpg'},
{provider: 'Twitter', enableCount: 'true'},
{provider: 'Share', enableCount: 'true'},
{provider: 'Email'},
{provider: 'Print'}],
userAction: act,
operationMode: 'multiSelect',
grayedOutScreenOpacity: 20,
onShareButtonClicked: function (eventObj) {
}
});
请注意,我在facebook和google plus上使用相同的图像进行测试,但下面显示的是:
有什么想法吗?由于Google Plus共享按钮是由Google托管的iframe按钮,因此无法对其进行样式化 可选参数iconImgUp、iconImgOver、iconOnly和工具提示将不适用于保留名称(“本机”)共享按钮:…“googleplus共享”
下面这对我很有用
var showShareBarUI_参数={
集装箱ID:“componentDiv”,
shareButtons:[{//常规共享按钮
提供者:“共享”,
工具提示:“共享按钮”,
iconImgUp:“/Images/icons\u share.png”
},{//Facebook
提供商:“facebook”,
工具提示:“在Facebook上推荐”,
iconImgUp:“/Images/icons_fb.png”
},{//Twitter
提供商:“twitter”,
工具提示:“在Twitter上推荐”,
iconImgUp:“/Images/icons_twitter.png”
},{//Pinterest
提供者:“pinterest”,
工具提示:“在Pinterest上推荐此选项”,
iconImgUp:“/Images/icons\u pin.png”
},{//Google+
提供者:“谷歌+”,
工具提示:“在谷歌上推荐这个”,
iconImgUp:“/Images/icons_gplus.png”
}, ],
showCounts:'无',
我的意思是:“真的”,
更多不受欢迎的提供者:“Pinterest、hyves、delicious、digg、friendfeed、Google书签、messenger、stumbleupon、skyrock、qq、新浪、开心网、人人网、vznet、vkontakte、spiceworks、viadeo、nkpl、xing、tuenti、technorati、plaxo、reddit、formspring、tumblr、faves、fark、mixx、bit.ly、hatena、misterwong、ask、ask、amazon、gmail、百度、box.net,什么sapp、netlog、evernote、aolmail、currenttv、yardbarker、blinklist、diigo、dropjack、segnalo、linkagogo、kaboodle、skimbit、facebook、twitter、googleplus、linkedin、mixi、odnoklassniki、豆瓣、,
用户操作:act,
GoogleplusAction:gpAct,
twitterUserAction:twAct
}