I have this code that creates links.
/* Create a link to activate the tab */ DOM_a = document.createElement(\"a\"); DOM_a.appendChild(document.cre
You should create the image using own DOM methods too:
Something like this:
var DOM_img = document.createElement("img"); DOM_img.src = "typo3conf/ext/ori_proyectos/res/images/interes.png"; DOM_a.appendChild(DOM_img);
A working example here.