Skip to content

Instantly share code, notes, and snippets.

@ramseyp
Created February 16, 2012 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramseyp/1847008 to your computer and use it in GitHub Desktop.
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