jsp 实现图片预览,并显示在弹出window中(讨论)
<form enctype="multipart/form-data" id="showtype_form" name="form" action="advertisement/advertisement/advertisementAddshowtype.action" method="post"><table><tr class="showtype_mixtext"> <td width="80" height="32" align="right" class="attrName"> <font color="red">*</font> 文字推广语: </td> <td width="323" class="attrValue"> <input type="text" id="publishword2" class="textInput" name="bannerPublishword_title1" value=""/> <input type="text" id="publishword3" class="textInput" name="bannerPublishword_title2" value=""/> </td> </tr> <tr class="showtype_mixtext"> <td width="80" height="32" align="right" class="attrName"> <font color="red">*</font> 广告小图标: </td> <td width="323" class="attrValue"> <input type="file" name="bannerIcon" value=""/> <input type="hidden" name="bannerIconName"/> </td> </tr><tr class="subTr"> <td height="65"> </td> <td style="padding-top:15px;"> <input class="submitButton" name="precious" type="button" value="上一步" onclick="javascript:location.href='<%=basePath%>advertisement/advertisement/advertisementToAddoriginality.action';"/> <input class="submitButton" id="showtype_preview" name="next" type="submit" value="效果预览" /> <input class="submitButton" id="showtype_submit" name="next" type="submit" value="发布"/> </td> </tr></table></form>