Please help,
I've been trying to dynamically create a div to add to my program. What I have doesn't work. Could someone help me figure out what I'm doing wrong in my runtime. Here is the action:
Acts.prototype.Like_Button = function (l_verb, l_color, l_under, l_layout,l_faces,l_url,l_code)
{
var div1 = document.createElement("div");
div1.style.position="absolute";
div1.style.left="100px";
div1.style.top = "10px";
//div1.style.color = "white";
div1.innerHTML = '<div class="fb-like" data-href="http://lancelocke.yourhosting.com/fb/" data-layout="box_count" data-action="recommend" data-show-faces="true" data-share="true" data-ref="home_rec"></div>';
document.body.appendChild (div1);
};
Any help would be greatly appreciated.