Pan*_*kaj 4 asp.net facebook facebook-like
我们怎样才能打开Facebook新窗口Tab而不是新窗口window?
<div style="position: relative; top: 3px;" id="likeButton">
<iframe frameborder="0" scrolling="no" allowtransparency="true" style="border: none;
overflow: hidden; width: 260px; height: 35px;" src="http://www.facebook.com/plugins/like.php?href=http:\\localhost\login.aspx|@&send=false&layout=button_count&width=100&
show_faces=false&action=like&colorscheme=light&font=arial&height=35">
</iframe>
</div>
Run Code Online (Sandbox Code Playgroud)
问题是 - 单击时Like Button,Facebook在新窗口中打开登录窗口.我怎样才能以新的方式打开它Tab
我的JSFiddle就在这里
试试这个代码吧,它适合我.
<a style="position: absolute; top:0px; left: 0px; width:100px; height:40px; cursor:pointer;" href="https://www.facebook.com/login.php?skip_api_login=1&display=popup&social_plugin=like&external_page_url=http%3A%2F%2Finvalid.invalid%2F&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fmethod%3Dopt.inlike%26app_id%3D127760087237610%26display%3Dpopup%26social_plugin%3Dlike%26secure%3Dfalse%26protocol%3Dhttp%253A%26external_page_url%3Dhttp%253A%252F%252Finvalid.invalid%252F%26from_login%3D1%26client_id%3D127760087237610&rcount=1" target="_blank"></a>
<div style="position: ansolute; top: 0px;z-index:0; cursor:pointer;" id="likeButton">
<iframe frameborder="0" scrolling="no" allowtransparency="true" style="border: none; overflow: hidden; width: 260px; height: 35px;z-index: 0;" src="http://www.facebook.com/plugins/like.php?href=http:\\localhost\login.aspx|@&send=false&layout=button_count&width=100& show_faces=false&action=like&colorscheme=light&font=arial&height=35"></iframe>
</div>?
Run Code Online (Sandbox Code Playgroud)
工作示例:http://jsfiddle.net/JpWCf/
从href 更改external_page_url参数.
| 归档时间: |
|
| 查看次数: |
4261 次 |
| 最近记录: |