Team:Goettingen/outreach videos

From 2014.igem.org

(Difference between revisions)
m
m
Line 1: Line 1:
<html>
<html>
<body>
<body>
-
<div id="ytplayer"></div>
+
<object width="640" height="390">
-
 
+
  <param name="movie"
-
<script>
+
        value="http://www.youtube.com/embed?listType=user_uploads&list=UUmdyv-J42xCtx95RkOLp41ANAME&version=3&autoplay=1"></param>
-
  // Load the IFrame Player API code asynchronously.
+
   <param name="allowScriptAccess" value="always"></param>
-
   var tag = document.createElement('script');
+
   <embed src="http://www.youtube.com/embed?listType=user_uploads&list=UUmdyv-J42xCtx95RkOLp41ANAME&version=3&autoplay=1"
-
   tag.src = "https://www.youtube.com/player_api";
+
        type="application/x-shockwave-flash"
-
  var firstScriptTag = document.getElementsByTagName('script')[0];
+
        allowscriptaccess="always"
-
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
+
        width="640" height="390"></embed>
-
 
+
</object>
-
  // Replace the 'ytplayer' element with an <iframe> and
+
-
  // YouTube player after the API code downloads.
+
-
  var player;
+
-
  function onYouTubePlayerAPIReady() {
+
-
    player = new YT.Player('ytplayer', {
+
-
      height: '390',
+
-
      width: '640',
+
-
      videoId: 'M7lc1UVf-VE'
+
-
    });
+
-
  }
+
-
</script>
+
</body>
</body>
</html>
</html>

Revision as of 10:19, 15 October 2014