Forum Moderators: phranque
<script>
embed['$vidid'] = '<iframe id="ytplayer" type="text/html" width="560" height="315" src="https://www.youtube.com/embed/$this_id?autoplay=1&rel=0&origin=$home" frameborder="0"></iframe>';
</script>
<div id="vid_$postdate"
onClick="document.getElementById('vid_$postdate').innerHTML = embed['$vidid'];">
[show thumbnail for video]
</div>