[COPYRIHT=1]
This takes a lot of time and bandwidth.
To eliminate this inconveniences, this library embeds a screenshot of the YouTube clip, overlays the title and a play button.
If the play button is pushed, the normal embed Flash code is retrieved and the video played back to the user with the normal version.
By retrieving just an image, the library speeds up page load time and reduces bandwidth.
Usage:
<div class="lyte" id="YouTube_Video_ID" style="width:480;height:385;"><noscript><a href="http://youtu.be/YouTube_Video_ID">Watch on YouTube</a></noscript>
<script>(function(){d=document;if(!document.getElementById('lytescr')){lyte=d.createElement('script');lyte.async=true;lyte.id="lytescr";lyte.src="lyte.js_location";d.getElementsByTagName('head')[0].appendChild(lyte)}})();</script></div>
Requirements:
· JavaScript enabled on client side