Refer to stumble upon and twitter

I would like a script which allows people to click on a stumble upon button (or twitter) which includes some kind of coded refererence to the page that it comes from

I have this

<a href=’ [%20To%20Blogger%20Blogs"]http://www.stumbleupon.com/submit?url=http://bloggerstop.net’ target=‘_blank’><img alt=‘I Like It!’ id=‘nobg’ src=‘[URL=“http://www.sitepoint.com/forums/view-source:http://www.unclesirbobby.org.uk/forum/stumbleupon.png”]http://www.unclesirbobby.org.uk/forum/stumbleupon.png](http://www.sitepoint.com/forums/view-source:http://www.stumbleupon.com/submit?url=http://bloggerstop.net/2010/04/add-stumbleupon-buttons-with-counter-to.html&title=Add%20StumbleUpon%20Buttons%20[With%20Counter)’ width=‘122’/></a>

I want to change this to something like this

<a href=’ [%20To%20Blogger%20Blogs"]http://www.stumbleupon.com/submit?url=object.this.htmlpage’ target=‘_blank’><img alt=‘I Like It!’ id=‘nobg’ src=‘[URL=“http://www.sitepoint.com/forums/view-source:http://www.unclesirbobby.org.uk/forum/stumbleupon.png”]http://www.unclesirbobby.org.uk/forum/stumbleupon.png](http://www.sitepoint.com/forums/view-source:http://www.stumbleupon.com/submit?url=http://bloggerstop.net/2010/04/add-stumbleupon-buttons-with-counter-to.html&title=Add%20StumbleUpon%20Buttons%20[With%20Counter)’ width=‘122’/></a>
Notice on the second version the web address refered to has become

object.this.htmlpage

Can this be done