Skip to content

Instantly share code, notes, and snippets.

@ramseyp
Created February 16, 2012 18:56
Show Gist options
  • Select an option

  • Save ramseyp/1847008 to your computer and use it in GitHub Desktop.

Select an option

Save ramseyp/1847008 to your computer and use it in GitHub Desktop.
Sample jquery script for prepending an image to a link
jQuery(document).ready(function($){
$('a.fancybox').prepend('<img class="play" src="http://yoursite.com/path/to/img.png" alt="Play Video!" />');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment