Originally Posted by fivefeet8
document.getElementById(div_id).style.backgroundImage = 'url("'+btn_path+'")';
Thanks a lot that was exactly what I needed. In the mean time I got this to work since it took a variable ok.
document.getElementById(id).src = imgsrc;
But I like your way better and will use it because it works the way I wanted to do it but got messed up with the string variable getting evaluated wrong. Thanks Again!