Youtube Overlay Image Div - Autoplay Underneath
问题 I have a div overlay on top of a YouTube iframe on this homepage. The idea is you click once and then the video would automatically play, however I just can't get it to play ball. When I set YouTube paramater 'autoplay=1' the video plays underneath the image without even clicking it. Here's the code I'm using below; <div onclick="thevid=document.getElementById('thevideo'); thevid.style.display='block'; this.style.display='none'"> <img style="cursor: pointer;" src="http://www