YouTube video embed from URL
  • Hello i put this code on my web site but the don't play the video. why?
    <script type="text/javascript">
    var embedParts="{{ $gimme->article->youtubeurl }}".split("/");
    document.write("<iframe title=\"YouTube video player\" width=\"435\" height=\"356\" src=\"http://www.youtube.com/embed/"+embedParts[3]+"?wmode=opaque\" frameborder=\"0\" allowfullscreen></iframe>");
    </script>
    Post edited by George Hadjichristofi at 2012-03-07 04:12:38
  • 1 Comment sorted by
  • hi, can u paste here the code after rendering the page (from browser show source command) or send a link if it's public?