Team:Stanford-Brown/Outreach/Transit

From 2012.igem.org

(Difference between revisions)
(Transit of Venus 2012)
(Transit of Venus 2012)
Line 14: Line 14:
===Transit of Venus 2012===
===Transit of Venus 2012===
-
<center><html><object width="480" height="280"><param name="movie" value="http://www.youtube.com/embed/JuUQCZd4SVM"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/embed/JuUQCZd4SVM"application/x-shockwave-flash" wmode="transparent" width="580" height="355"></embed></object></html></center>
+
<html>
 +
<center>
 +
<div id="ytplayer"></div>
 +
 
 +
<script>
 +
  // Load the IFrame Player API code asynchronously.
 +
  var tag = document.createElement('script');
 +
  tag.src = "https://www.youtube.com/player_api";
 +
  var firstScriptTag = document.getElementsByTagName('script')[0];
 +
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
 +
 
 +
  // 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: 'JuUQCZd4SVM'
 +
    });
 +
  }
 +
</script>
 +
</html>

Revision as of 17:23, 15 June 2012


Transit of Venus 2012