<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br" lang="pt-br">
<head>
<script type="text/javascript">
function id( el ){
        return document.getElementById( el );
}
window.onload = function(){
        var imgs = document.getElementsByTagName('img');
        for( var i=0; i<imgs.length; i++ ){
                imgs[i].onclick = function(){
                        var area = id('area').value;                    
                        id('area').value = area.replace(/src="[-a-zA-Z0-9:_\/.]+"/, 'src="'+this.src+'"' );
                }
        }
}
</script>
</head>
<body>
        <form action="" method="post">
                <fieldset>
                <label><textarea cols="30" rows="7" id="area"><a href="http://www.site.com.br/index.php?user=2"><img src="../imagens/imagem.png" alt="" /></a></textarea></label>
                </fieldset>
        </form>
       
        <img src="http://100grana.files.wordpress.com/2008/11/mickey-mouse-c.jpg" alt="" />
        <img src="http://pcmeira.blog.uol.com.br/images/PatoDonald_pcmeira.jpg" alt="" />
</body>
</html>