Team:Harvard/test

From 2011.igem.org

(Difference between revisions)
Line 41: Line 41:
             <p>You will need Flash 8 or better to view this content. </p>
             <p>You will need Flash 8 or better to view this content. </p>
               </div>
               </div>
-
<a href="javascript:ytplayer.playVideo()">Play</a>
 
-
                                <a href="javascript:ytplayer.stopVideo()">Stop</a>
 
<script type = "text/javascript">
<script type = "text/javascript">
Line 51: Line 49:
"http://www.youtube.com/v/pn0LW_ou6gA&enablejsapi=1&playerapiid=ytplayer",
"http://www.youtube.com/v/pn0LW_ou6gA&enablejsapi=1&playerapiid=ytplayer",
"ytapiplayer", "425", "300", "8", null, null, params, atts);
"ytapiplayer", "425", "300", "8", null, null, params, atts);
 +
 +
                                        function play() {if (ytplayer) {ytplayer.playVideo();}}
 +
                                        function pause() {if (ytplayer) {ytplayer.pauseVideo();}}
 +
</script>
</script>
 
 
-
 
+
                        <a onclick="pause();">Pause</a>
 +
                        <a onclick="play();">Play</a>
</div>
</div>

Revision as of 17:09, 24 August 2011