YT Scripy


SUBMITTED BY: Guest

DATE: Oct. 21, 2013, 4:03 p.m.

FORMAT: Text only

SIZE: 830 Bytes

HITS: 1145

  1. <script src="http://www.google.com/jsapi"></script>
  2. <script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
  3. <div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div>
  4. <script type="text/javascript">
  5. google.load("swfobject", "2.1");
  6. function onYouTubePlayerReady(playerId) {
  7. ytplayer = document.getElementById("myytplayer");
  8. ytplayer.playVideo();
  9. ytplayer.mute();
  10. }
  11. var params = { allowScriptAccess: "always" };
  12. var atts = { id: "myytplayer" };
  13. swfobject.embedSWF("http://www.youtube.com/v/MO8ITTxvdSo?enablejsapi=1&playerapiid=ytplayer&allowFullScreen=true&version=3",
  14. "ytapiplayer", "420", "315", "8", null, null, params, atts);
  15. </script>

comments powered by Disqus