Text-only version of Facebook's Like button?

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:13:58

Make text-only links for Facebook and Twitter and use CSS to do your styling. Here's how to create the links (with appropriately-sized pop-up windows):

http://jsfiddle.net/c6XQT/

Here's the code:

<a href="JavaScript:window.open('http://www.facebook.com/sharer.php?u=http://jsfiddle.net','','width=657,height=400,scrollbars=1')">Like</a>

<a href="JavaScript:window.open('https://twitter.com/share?url=http://jsfiddle.net&text=Check out this link:','','width=450,height=350')">Tweet</a>

The only allowed modifications to the Like button (and all other social plugins) are those achievable via the code generation interface http://developers.facebook.com/docs/reference/plugins/like/

Well, here is what i've come up with. A bit of googling did the trick

http://jsfiddle.net/HqA3H/24/

In the fiddle after the script tags, you can see

var fbURL = "http://www.facebook.com/plugins/like.php?href=http://www.lolwhuuutwtf.com&show_faces=trace&width=450&action=like&colorscheme=light";

Change www.lolwhuuutwtf.com to whatever your website link is and it will work just fine :) You can scroll down and see the html, edit it to your needs but be sure not to remove 'id="flb" onclick="insertLikeButton();"' Because that triggers the javascript and so on.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!