My staff and I have been researching how to set up a page to have hidden content, that appears at a specific point in a Youtube video.
We got there quickly at first by using the settimeout() function, but this just goes by elapsed time, not the time in the video. If the video is paused, for example, after the specified length of time, the hidden content appears anyway.
This is our code so far:
<p>
<script type="text/javascript">// <![CDATA[
function showIt() {
document.getElementById("hid").style.display = "block";
}
setTimeout("showIt()",30000);
// 1000 = 1 sec | 60000 is 1 minute
// ]]></script>
</p>
<p>{youtube}Yhwk5OorNPw&rel=0&autoplay=1&showinfo=0&version=3|640|390{/youtube}</p>
<div id="hid" style="display: none;">
<p style="text-align: center;"><span style="font-size: 32pt; color: #ff6600;"><strong><a target="_blank" href="http://www.youtube.com/watch?v=K80leSIhSD4"><span style="color: #ff6600;">HEY RICK - You can buy a Website Now!</span></a></strong></span></p>
</div>
If you know a way to have it triggered with the video gets to a a specific time, that would be very helpful!!!