如题:
<tr>
   <td width="172" height="190" align="center" valign="middle"><a href="marque_image.jsp?id=<%=arrayStr[i][0]%>&fl_id=1"><%=arrayStr[i][2].substring((arrayStr[i][2].indexOf("<img")),(arrayStr[i][2].indexOf(">")))%></a></td><!-- width=170, height=187 -->
            </tr>
arrayStr[i][2]的值为<img height="187" width="170" border="0" alt="" src="/web/upload/Image/1(2).jpg" />
现在有个问题我用substring函数把<img height="187" width="170" border="0" alt="" src="/web/upload/Image/1(2).jpg" />截取,取出src="/web/upload/Image/1(2).jpg如果改变这个图片的大小
我用了这种方法
<script type="text/javascript"> 
var image = document.createElement("img");
                 image.src="/web/upload/Image/1.jpg";
                 image.width = "170";
                 image.height = "187";
                 image.border="0";
document.write(image);
</script> 页面没有反应,最后再加了句 td.appendChild(image);还是没反应 ,这是怎么回事