/ Published in: JavaScript
For dynamic publishing without shitty markup
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Swfobject Youtube Embedded video var youTubeEmbed = function(){ var atts = {}; atts.id = "vid"; swfobject.embedSWF('http://www.youtube.com/v/'+ytVideoID+"&hl=en&fs=1&rel=0&color1=0x000000&color2=0x2d2d2d&enablejsapi=1&playerapiid=ytplayer", "vid", "640px", "385px", "8", null, null, atts); }; if(ytVideoID != ''){ youTubeEmbed(); } <script> var ytVideoID = "fzzjgBAaWZw"; </script>