2011-07-07 9 views
5

Google +1ボタンを簡単なリンクとして使用できますか?Google +1ボタンをリンクとして使用しますか?

<a href="http://google.com/+1/url=http://mysite.com" class="google-plus1"> 
    + 1 
</a> 

ように私は、アイフレームを回避するためのiframe

+2

lutionsは:http://stackoverflow.com/questions/7157411/adding-a-google-plus-one-or-share-link-to:[1] [1] [ここでは、リンクの説明を入力します] -an-email-newsletter – JacobEvelyn

答えて

2

を好きではない、あなたはこれを使用することがあります。 +1 your website

コードをHTTP +1を付け用:// WWWを。 example.com

<!-- Place this tag in your head or just before your close body tag --> 
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> 

<!-- Place this tag where you want the +1 button to render --> 
<g:plusone href="http://www.example.com"></g:plusone> 
+2

私は、ユーザーがボタンをクリックする前にgoogle *からデータをロードする必要がないソリューションを希望します。 「自分のウェブサイトを+1するためにここに行く」という種類のリンク。このようなpulsone APIを埋め込まない**プライバシーの理由**があります。いくつかの国では違法かもしれません。 –

関連する問題