<a><img onmouseover="bigImg(this)"onmouseout="normalImg(this)" src="icons/google-
plus.png"onclick="plus();" width="24" height="24" style="padding: 3px;cursor:
pointer;"> </a>
function plus() {
var w = 500, h = 500;
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 2);
var post = window.location + '';
console.log('post = ' + post);
return window.open('https://plusone.google.com/_/+1/confirm?hl=en&url=' +url_post,
+url_post, 'toolbar=no, location=no, directories=no, status=no, menubar=no,
scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' +
top + ', left=' + left); }
我需要在说明区域内的此Google Plus分享中显示我的默认图片,但是当我分享我的资产时,它会显示GO-To顶部图片。请任何人帮助我?
结果显示在此处:http://jsfiddle.net/rawoofpm/cL0n93rL/embedded/result/ 在此先感谢。
答案 0 :(得分:0)
Google+ API有documented markup,用于指定首选图片的内容。您需要更改aqarworld.com以在每个页面上包含这样的标记。
<body itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">Shiny Trinket</h1>
<img itemprop="image" src="{image-url}" />
<p itemprop="description">Shiny trinkets are shiny.</p>
</body>