var id6=bean.GOODSPIC;
cell6.innerHTML = "<div onmouseover = 'over("+id6+")' onmouseout = 'out()' style='cursor:hand;'>查看图片</div>";
function over(picPath)
{alert(picPath);
if (picPath=="")picPath="/img/dialogclose.gif";
x = event.clientX;
y = event.clientY;
document.all.tip.style.display = "block";
document.all.tip.style.top = y;
document.all.tip.style.left = x+10;
document.all.photo.src = ".."+picPath;
}
我用以上代码,为什么不能在jsp中看到图片?
第二,下面的相对路径有错误,这个是我自己的毛病,以后需要改正。