如何在javascript中获取Img src?
egygy 2003-08-21 12:49:44 我的问题很简单,怎么样让下面的Imag1在layer1中显示正确路径.谢谢!!!!
<body >
<script language= "JavaScript " >
function img1(object)
{
imag1=object.src;
}
</script >
<div id= "Layer1 " style= "position:absolute; left:294px; top:112px; width:148px; height:67px; z-index:1 " >
<%= imag1% >
</div >
<table width= "136 " border= "0 " cellpadding= "0 " cellspacing= "0 " >
<!--DWLayoutDefaultTable-- >
<tr >
<td height= "109 " > </td >
<td valign= "top " > <img src= "gy/lmb.JPG " width= "154 " height= "200 " onMouseOver= "img1(this) " > </td >
</tr >
</table >
</body >