View Full Version : Need help with js script...

07-29-2011, 11:09 PM
Hi there,
I'm not too familiar with js, so I'm asking for help :)

I have this script below which loads flash object after clicking fb like button. My question is
how to do it after clicking the fb like button automatically to recognize youtube flash object or
an object from another tube site? Is it possible? Thank you in advance!

<script type='text/javascript'>
window.fbAsyncInit = function() {
FB.init({appId: "0000000000000", status: true, cookie: true,
xfbml: true});
(function() {
var e = document.createElement("script"); e.async = true;
e.src = document.location.protocol +
FB.Event.subscribe('edge.create', function(href, widget)
setTimeout("playvideo1();", 0);
function playvideo1()
document.getElementById('playvideo1').innerHTML = '<object ....... </object>';