onclick機能付きのtwitter imgを持っています
<img src="images/twtr.png" onclick="tweetPage();"/>
function tweetPage()
{
var url = "http://www.website.com/index.html#eyJkIjoidGhpcyBpcyBh";
var testUrl ="https://platform.twitter.com/widgets/tweet_button.html?url="+url
var htmlStr = '<iframe allowtransparency="true" frameborder="0" scrolling="no"'
+'src="'+testUrl+'"'
+'style="width:130px; height:20px;padding-top: 37%;"></iframe>'
$('#twitLindDiv').html(htmlStr);
}
そしてつぶやきボタンが表示されます。ツイート ボタンをクリックすると、Twitter ポップアップ ボックスが表示されますが、テキスト ボックスの URL には
どうすればこれを解決できますか。
私も試しました
&hashtags= の代わりに #
結果は
http://www.website.com/index.html #eyJkIjoidGhpcyBpcyBh
どうすればこれを解決できますか