if an image html is
<img src="img1" class="homeimage"/>
how using jquery would you wrap a <a> around the image with window.hostname as a href?
so if the url of a page is http://www.google.com/search?jksjkjskaj
the jquery should return
<a href="http://www.google.com"><img src="img1" class="homeimage"/></a>
Check out jQuery’s
.wrap()Example: http://jsfiddle.net/CRN86/1/