Skip to content

Instantly share code, notes, and snippets.

@omgmog
Created May 13, 2012 21:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omgmog/2690199 to your computer and use it in GitHub Desktop.
Save omgmog/2690199 to your computer and use it in GitHub Desktop.
HTML to accompany the jQuery at gist:2690184
<!-- you need a div with the class 'ytembed' -->
<div class="ytembed">
<!-- put a link with the url + embed options of your video -->
<a href="http://www.youtube.com/watch?v=dQw4w9WgXcQ?rel=0&amp;showinfo=0&amp;autohide=1&amp;autoplay=1&amp;wmode=transparent">
<!-- and a thumbnail, with the width/height specified -->
<img width="560" height="315" src="/path/to/custom_thumbnail.jpg" alt="Click to play"/>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment