[jQuery] Appending/prepending image source attribute

[jQuery] Appending/prepending image source attribute


I am trying to change the source of an image when the page loads to
include some code in front, and after the url.
Like this:
Original src:
http://www.teamviewer.com/images/teamviewer.png
How I want it to look like:
/umbraco/ImageGen.aspx?image=" + (original-src) + "&width=" +
width + "&height=" + height;
height = $("#myElement").height();
width = $("#myElement").width();
Regards,
Ove Andersen