日期:2014-05-16 浏览次数:20446 次
<input type="button" id="uploadimage" value="上传图片" />
<div id="oDIVUploadFile" title="菜品图片上传" style="display:none">
<input type="file" name="upload" id="upload" />
<div id="fileQueue"></div>
</div>
$(document).ready(function () {
$('#upload').uploadify({
'formData': { 'folder': '/Uploads' },
'buttonText': '选择文件',
'buttonClass': 'browser',
'removeCompleted': false,
'swf': 'uploader/uploadify.swf', //进度条,Uploadify里面含有
'debug': false,
'height': 20,
'width': 70,
'uploader': 'uploader/UploadProcess.ashx' //一般处理程序
});
$('#oDIVUploadFile').dialog({
modal: true,
height: 300,
width: 350,
autoOpen: false,
close: function (event, ui) {
$('a.ui-dialog-titlebar-close').show();
}
});
$("#uploadimage").click(function () {
$("#oDIVUploadFile").dialog("open");
});