代码如下,我想将file标签浏览的地址放到img下的src上,IE可以显示图片,但火狐不能这是怎么回事?急!!!
在线等
</script>          <script type="text/javascript">
            $("#supPhoto").change(function(){
                 // alert($("#supPhoto").val());
                         document.getElementById("bigImage").src =$("#supPhoto").val();                          })    ;
    </script></head>
<body>
                   <div id=imgContainer   class=imgContainer><img   id=bigImage src="${photoPath}"    /> </div>
       <tr>
                <td height="40">
                         <s:file name="supPhoto" id="supPhoto" class="gensched-37"  ></s:file>                    <input type="hidden" name="proId" value="${proId}">
                    <input type="hidden" name="proPath" value="${proPath}">                </td>
                <td>                </td>
       </tr>
    </body>
</html>