Team:Harvard/test
From 2011.igem.org
(Difference between revisions)
Nidanaushad (Talk | contribs) |
Nidanaushad (Talk | contribs) |
||
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> | ||
- | |||
- | |||
<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