text box when the picture load

text box when the picture load



function imageLoaded(trg){
 var w=$(trg).width(),
h=$(trg).height(),sc,x,y;
 if (h==20 ) return;
 
 clearTimeout(_loader);
 document.getElementById("loader").style.display="none";


 $("figure").html('<img src="'+trg.src+'">+ onMouseOver  = function  ( ) ......')

I want to add a text box when the picture load
onMouseOver = function ()