Created
February 16, 2012 18:56
-
-
Save ramseyp/1847008 to your computer and use it in GitHub Desktop.
Sample jquery script for prepending an image to a link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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