文件上传[Uploadify]
Uploadify文件上传插件
Uploadify简单说来,是基于Jquery的一款文件上传插件。它的功能特色总结如下:
http://www.uploadify.com/demos/
案例:http://demo.swfupload.org/v220/index.htm
代码截图:
<script type="text/javascript">var swfu;window.onload = function () {swfu = new SWFUpload({// Backend Settingsupload_url: "upload.php",post_params: {"PHPSESSID": "4a5922ll546csgthmlpmogbvo7"},// File Upload Settingsfile_size_limit : "2 MB",// 2MBfile_types : "*.jpg",file_types_description : "JPG Images",file_upload_limit : "0",// Event Handler Settings - these functions as defined in Handlers.js// The handlers are not part of SWFUpload but are part of my website and control how// my website reacts to the SWFUpload events.file_queue_error_handler : fileQueueError,file_dialog_complete_handler : fileDialogComplete,upload_progress_handler : uploadProgress,upload_error_handler : uploadError,upload_success_handler : uploadSuccess,upload_complete_handler : uploadComplete,// Button Settingsbutton_image_url : "images/SmallSpyGlassWithTransperancy_17x18.png",button_placeholder_id : "spanButtonPlaceholder",button_width: 180,button_height: 18,button_text : '<span class="button">Select Images <span class="buttonSmall">(2 MB Max)</span></span>',button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',button_text_top_padding: 0,button_text_left_padding: 18,button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,button_cursor: SWFUpload.CURSOR.HAND,// Flash Settingsflash_url : "../swfupload/swfupload.swf",custom_settings : {upload_target : "divFileProgressContainer"},// Debug Settingsdebug: false});};</script>