Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<link rel="stylesheet" href="" type="text/css" />
<script type="text/javascript">
function insertLikeButton() {
var container = document.getElementById('flbCont');
var w =;
var h =;
fbFrame = document.createElement("IFRAME");
fbFrame.setAttribute("src", fbURL);
fbFrame.setAttribute("scrolling", "no");
fbFrame.setAttribute("frameBorder", 0);
fbFrame.setAttribute("allowTransparency", true); = "none"; = "hidden"; = w; = h;
container.replaceChild(fbFrame, document.getElementById('flb'));
<div id="flbCont" class="connect_widget">
<a id="flb" class="connect_widget_like_button clearfix like_button_no_like" onclick="insertLikeButton();" style="cursor:pointer;-moz-outline-style:none;text-decoration:none"><span class="liketext" style="line-height:1">Show Facebook Likes</span></a>

This comment has been minimized.

Copy link
Owner Author

commented Nov 29, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.