2012-01-25 12 views
0

私は動的コンテンツを含むiframeを持つウェブサイトを持っています(このリンクと他の時間はリンクなどです) 。 outside iframe(正規サイト内)私は3つのソーシャルボタンを持っています:Facebook Twitter & Google+。google +とtwitterの "likeボタン"にダイナミックリンクを割り当てる方法

私は、ユーザーがiframeの外の社会的・ボタンをクリックします - しかし、私は、データのhrefを持っているし、私ができるので、Facebookのにiframeのリンクを接続するにはiframeのitselft *

を好きにすることは簡単です。そこにはiframeのリンクを置く:

<div class="fb-like" data-href="http://www.theIframeLinkIwant.com/" .../> 

をしかし、私はTwitterの& Google+のためにそれをどのように行うのか - 彼らは、フィールドの並べ替えを持っていない:

Twitterのボタンについてはの
<g:plusone size="medium" annotation="inline" width="120" class="googlePlus"></g:plusone> 

<a href="https://twitter.com/share" class="twitter-share-button">Tweet</a> 

おかげで、

答えて

1

アロンはGoogleにとってhere

<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.yourwebsite.com">Tweet</a> 

を読んで、プラスグーグル+のための問題は、事前オプションにあったhere

<g:plusone annotation="inline" href="http://www.yourwebsite.com"></g:plusone> 
1

をお読みください。

はhrefを追加するだけです:

<g:plusone annotation="inline" href="http://www.whatever.com"></g:plusone> 
関連する問題