var strShowImg1 = ""; function Cimg1(objname,imgid){ document.getElementById(objname).style.cssText = 'background-image: url(http://special.zhaopin.com/pageeasy/default/image_' + imgid + '.jpg);background-position: right top;'; var arrShowImg1 = strShowImg1.split(","); for (var n = 1; n <= arrShowImg1.length-1; n++){ if (arrShowImg1[n]==imgid){ document.getElementById("img1"+arrShowImg1[n]).style.cssText = 'filter:alpha(opacity=100)'; }else{ document.getElementById("img1"+arrShowImg1[n]).style.cssText = 'filter:alpha(opacity=30)'; } } } function BDiv1(n){ var nown = n; document.write('
'); document.write('
'); document.write(''); document.write(''); document.write(''); var imgnum = 0; for (var i = 0; i <= arrImg.length-1; i++){ if (arrImg[i][0]==tid && arrImg[i][1]=="banner1") { if (imgnum == 0 && nown == 0) { nown = arrImg[i][2] } var nowalpha = 30; if (nown == arrImg[i][2]){nowalpha = 100;} document.write(''); imgnum++; strShowImg1 = strShowImg1 + "," + arrImg[i][2]; } } if (imgnum == 0) { document.getElementById('cimg1').style.display = 'none'; } document.write('
点击关闭
 Banner1推荐图片
' + arrImg[i][1] + '推荐图片(图片编号:' + arrImg[i][2] + ')
'); document.write('
'); document.write('
'); document.write('
'); } /**/ var strShowImg2 = ""; function Cimg2(objname,imgid){ document.getElementById(objname).style.cssText = 'background-image: url(http://special.zhaopin.com/pageeasy/default/image_' + imgid + '.jpg);background-position: right top;'; var arrShowImg2 = strShowImg2.split(","); for (var n = 1; n <= arrShowImg2.length-1; n++){ if (arrShowImg2[n]==imgid){ document.getElementById("img2"+arrShowImg2[n]).style.cssText = 'filter:alpha(opacity=100)'; }else{ document.getElementById("img2"+arrShowImg2[n]).style.cssText = 'filter:alpha(opacity=30)'; } } } function BDiv2(n){ var nown = n; document.write('
'); document.write('
'); document.write(''); document.write(''); document.write(''); var imgnum = 0; for (var i = 0; i <= arrImg.length-1; i++){ if (arrImg[i][0]==tid && arrImg[i][1]=="banner2") { if (imgnum == 0 && nown == 0) { nown = arrImg[i][2] } var nowalpha = 30; if (nown == arrImg[i][2]){nowalpha = 100;} document.write(''); imgnum++; strShowImg2 = strShowImg2 + "," + arrImg[i][2]; } } if (imgnum == 0) { document.getElementById('cimg2').style.display = 'none'; } document.write('
点击关闭
 Banner2推荐图片
' + arrImg[i][1] + '推荐图片(图片编号:' + arrImg[i][2] + ')
'); document.write('
'); document.write('
'); document.write('
'); document.getElementById('cimg2').style.top = document.getElementById('cimg1').offsetHeight + 50 + 10; } /**/ BDiv1(0); BDiv2(0);