# Text link
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\">Stumble this: $realname</a></p>");
# Image link
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/stumbleupon.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/small_su_logo2.png\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/small_su_logo.png\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/stumble1.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/stumbleit.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/stumbleupon.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/su_micro.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/thumbup1.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
print ("<p><a href=\"http://www.stumbleupon.com/submit?url=$encoded&title=$encoded_realname\"><img src=\"/images/thumbup.gif\" alt=\"Add to stumbleupon\" title=\"Click here to add '$realname' to your StumbleUpon blog\" border=0></a></p>");
Working Example
Here follows what it looks like, obviously in your own blog, edit out the version you want, and replace the image file with the one you want to use.