YouTube video on secure pages

Options

Thanks to the gracious help of Dave Hart, we were able to place a YouTube video on a secure Donations 2.0 form. This method allows the end-user to view "non-secure" content without recieving a message to accept "non-secure" content. It also uses an older code library called flashobject.js which has been replaced with swfobject.js.

<DIV id="youtube" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; WIDTH: 300px; PADDING-TOP: 0px; HEIGHT: 250px"></DIV>

<noscript><EMBED src="" width="300" height="250" type="application/x-shockwave-flash"></EMBED></noscript>

<script src="../js/flashobject.js" type="text/javascript"></script>

<script type="text/javascript">

var yt = document.getElementById('youtube');

var videoUrl = "";

yt.innerHTML = '<a style="display: block; text-align: center; font-size: 14pt;" target="_blank" href="' + videoUrl + '">Can\\'t see the video? Click here.</a>';

var so = new FlashObject(videoUrl, "youtube", yt.style.width, yt.style.height, "7", "#ffffff");

so.write("youtube");

</script>

Tagged:

Categories