Creating a like/unlike button

Creating a like/unlike button

Hi Guys,

I am trying to create a like/unlike button for my website.

If you visit  http://callummundine.com.au/photo/explore_photos.php and hover over the first photo, you can click the like button. As you can see, i have managed to get it to switch between 'Like' and 'Unlike', but it removes the icon.

Any ideas?

Here is the code:
  1. <script>
  2. $("#like-unlike").click(function(e) {
  3. if ($(this).html() == "Like") {
  4. $(this).html('Unlike');
  5. }
  6. else {
  7. $(this).html('Like');
  8. }
  9. return false;
  10. });
  11. </script>