0

I got this problem on a old website. How to transform document.all to document.getElementById ?

Thank you

function _contsetValue(item,vl){

var _item=document.all._cnt_item[item];

_item.style.backgroundImage='url(' + skin_image[23].src + ')'
_item.style.color="#000000";
_item.innerHTML= (item+1) + " " + vl;

var _cnt=document.getElementById('_contbase');
if ( (item+1) > _cntxx){
    _cnt.scrollLeft=(65*(item));
    _cntxx+=7;
}
;
unor
  • 92,415
  • 26
  • 211
  • 360

1 Answers1

0

document.all[ID] is the same as document.getElementById(ID) if it's that what you want

pwolaq
  • 6,343
  • 19
  • 45