我用下面的代碼添加了一個Twitter分享按鈕,進入我的博客:如何風格的Twitter彈出
<a class="twitter popup" href="http://twitter.com/share?text=mytext">Tweet Me</a>
和我在一個彈出打開它:
<script type="text/javascript">
$('.popup').click(function(event) {
var width = 575,
height = 400,
left = ($(window).width() - width)/2,
top = ($(window).height() - height)/2,
url = this.href,
opts = 'status=1' +
',width=' + width +
',height=' + height +
',top=' + top +
',left=' + left;
window.open(url, 'twitte', opts);
return false;
});</script>
有一種辦法風格彈出窗口?我想要我的風格與彈出式的Twitter形式。
以什麼樣式?你無法控制twitter頁面。你*可以做的唯一的事情就是將它加載到一個iframe中,並在它周圍做一些樣式。 – Felix 2011-06-14 11:39:26
我的意思是,有一種方法可以構建我自己的Twitter頁面,當按下OK鍵時,將信息發送給Twitter? – Andref 2011-06-14 13:29:17