标签:des c style class blog code
1
2
3 |
<script src= "jquery/1.7.1/jquery.min.js"
type= "text/javascript" ></script> <script src= "jquery.uploadify.min.js"
type= "text/javascript" ></script> <link rel= "stylesheet"
type= "text/css"
href= "uploadify.css" > |
<form> <div id="queue"></div> <input id="file_upload" name="file_upload" type="file" multiple="true"> </form>
<script type="text/javascript"> $(document).ready(function() { $("#file_upload").uploadify({ ‘uploader‘: ‘uploadify.swf‘, ‘script‘: ‘UploadHandler.php‘, ‘folder‘: ‘UploadFile‘, ‘queueID‘: ‘fileQueue‘, ‘auto‘: true, ‘multi‘: true }); }); </script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 |
<script type= "text/javascript" > $(document).ready(function() { $( "#uploadify" ).uploadify({ ‘uploader‘ : ‘JS/jquery.uploadify-v2.1.0/uploadify.swf‘ , ‘script‘ : ‘UploadHandler.ashx‘ , ‘cancelImg‘ : ‘JS/jquery.uploadify-v2.1.0/cancel.png‘ , ‘folder‘ : ‘UploadFile‘ , ‘queueID‘ : ‘fileQueue‘ , ‘auto‘ : false , ‘multi‘ : true , ‘onInit‘ :function(){alert( "1" );}, ‘onSelect‘ : function(e, queueId, fileObj) { alert( "唯一标识:"
+ queueId + "\r\n"
+ "文件名:"
+ fileObj.name + "\r\n"
+ "文件大小:"
+ fileObj.size + "\r\n"
+ "创建时间:"
+ fileObj.creationDate + "\r\n"
+ "最后修改时间:"
+ fileObj.modificationDate + "\r\n"
+ "文件类型:"
+ fileObj.type ); } }); }); </script> |
支持多文件上传的jQuery文件上传插件Uploadify,布布扣,bubuko.com
标签:des c style class blog code
原文地址:http://www.cnblogs.com/kingboy2008/p/3762286.html