1
我正在使用經典形式演示。鏈接是:link textSWFUpload:如何取消經典形式的上傳
如果您嘗試演示&嘗試上傳文件,您可以看到一旦您點擊「提交應用程序」按鈕,取消(交叉圖像)按鈕不會顯示在頂部藍色方框的右上角(表示進度)。如何操作現有的代碼,以便能夠在取消上傳的同時取消取消按鈕&?
當前JS代碼:
<script type="text/javascript">
var swfu;
window.onload = function() {
swfu = new SWFUpload({
// Backend settings
upload_url: "upload.php",
file_post_name: "resume_file",
// Flash file settings
file_size_limit : "10 MB",
file_types : "*.*", // or you could use something like: "*.doc;*.wpd;*.pdf",
file_types_description : "All Files",
file_upload_limit : "0",
file_queue_limit : "1",
// Event handler settings
swfupload_loaded_handler : swfUploadLoaded,
file_dialog_start_handler: fileDialogStart,
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
//upload_start_handler : uploadStart, // I could do some client/JavaScript validation here, but I don't need to.
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
// Button Settings
button_image_url : "XPButtonUploadText_61x22.png",
button_placeholder_id : "spanButtonPlaceholder",
button_width: 61,
button_height: 22,
// Flash Settings
flash_url : "../swfupload/swfupload.swf",
custom_settings : {
progress_target : "fsUploadProgress",
upload_successful : false
},
// Debug settings
debug: false
});
};
</script>
謝謝。