Hai provato co
codice:
document.getElementById(linknuovo).setAttribute('src','img/pulsante-a.gif');
???