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;
}
;
如果您要的是document.all[ID]
与document.getElementById(ID)
相同
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.