Вместо артов - отображается текст:
' + txt + '
'; } document.getElementById('test').innerHTML= txt; for (var i = 0; i < arts_c; i++) { if (!arts_vis[i] && (cat == '' || cat == arts_cat[i] || (cat == 'rent' && arts_owner[i]) || (cat == 'ystar' && arts_star1[i]) || (cat == 'bstar' && arts_star2[i]) || (cat == 'chest' && arts_chest[i]))) { if (arts_chest[i] && cat != 'chest') continue; txt = 'http://dcdn.heroeswm.ru/i/inv_s_y0.gif'; if (arts_star1[i]) txt = 'http://dcdn.heroeswm.ru/i/inv_s_y1.gif'; document.getElementById('star'+arts_id[i]+'_y').src = txt; txt = 'http://dcdn.heroeswm.ru/i/inv_s_b0.gif'; if (arts_star2[i]) txt = 'http://dcdn.heroeswm.ru/i/inv_s_b1.gif'; document.getElementById('star'+arts_id[i]+'_b').src = txt; txt = 'http://dcdn.heroeswm.ru/i/inv_s_s0.gif'; if (arts_chest[i]) txt = 'http://dcdn.heroeswm.ru/i/inv_s_s1.gif'; document.getElementById('chest'+arts_id[i]+'_s').src = txt; } } for (i = 1; i <= 9; i++) { if (i <= 6) document.getElementById('ln'+i).style.fontWeight = (i == r)? 'bold' : 'normal'; document.getElementById('tbc'+i).style.backgroundColor = (i == r)? 'white' : '#f5f3ea'; if (i == 7) { txt = 'http://dcdn.heroeswm.ru/i/inv_s_y0.gif'; if (r == 7) txt = 'http://dcdn.heroeswm.ru/i/inv_s_y1.gif'; document.getElementById('ystar').src = txt; } if (i == 8) { txt = 'http://dcdn.heroeswm.ru/i/inv_s_b0.gif'; if (r == 8) txt = 'http://dcdn.heroeswm.ru/i/inv_s_b1.gif'; document.getElementById('bstar').src = txt; } if (i == 9) { txt = 'http://dcdn.heroeswm.ru/i/inv_s_s0.gif'; if (r == 9) txt = 'http://dcdn.heroeswm.ru/i/inv_s_s1.gif'; document.getElementById('chest').src = txt; } } var date = new Date(); date.setTime(date.getTime()+(30*60*60*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = 'inv_cat'+"="+cat+expires+"; path=/"; document.cookie = 'inv_r'+"="+r+expires+"; path=/"; return 0;}function createXMLHttpReq(){ var objXMLHttpReq; if (window.XMLHttpRequest) { // Real browsers ;) // objXMLHttpReq = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE // objXMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
и прочее. |