我在网上找了个SWFUPLOAD插件 应用于批量上传,不过单独部署那个事例程序时好用,可以一用到我们的工程 首先被各式刷给刷掉了,去掉格式刷  结果其他的样式全有,唯独缺少 浏览按钮 就是 点击弹出浏览框的按钮 没显示出来 想问下 是什么原因  急~~~

解决方案 »

  1.   

    瀏覽按鈕是要穿圖片路徑給flash,即swfupload.swf文件的。
    LZ檢查一下吧。
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
      <link href="http://localhost:8080/FPP_M/css/default.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="http://localhost:8080/FPP_M/js/swfupload.js"></script>
        <script type="text/javascript" src="http://localhost:8080/FPP_M/js/swfupload.queue.js"></script>
        <script type="text/javascript" src="http://localhost:8080/FPP_M/js/fileprogress.js"></script>
        <script type="text/javascript" src="http://localhost:8080/FPP_M/js/handlers.js"></script>
        <!-- 初始化swfupload 对象-->
       <script type="text/javascript">
    var upload1, upload2; window.onload = function() {
    upload1 = new SWFUpload({
    // Backend Settings
    upload_url: "PictureAction.action",
    post_params: {"picSESSID" : "songhao"},
    file_post_name: "file",
    // File Upload Settings
    file_size_limit : "102400", // 100MB
    file_types : "*.*",
    file_types_description : "All Files",
    file_upload_limit : "10",
    file_queue_limit : "0", // Event Handler Settings (all my handlers are in the Handler.js file)
    file_dialog_start_handler : fileDialogStart,
    file_queued_handler : fileQueued,
    file_queue_error_handler : fileQueueError,
    file_dialog_complete_handler : fileDialogComplete,
    upload_start_handler : uploadStart,
    upload_progress_handler : uploadProgress,
    upload_error_handler : uploadError,
    upload_success_handler : uploadSuccess,
    upload_complete_handler : uploadComplete, // Button Settings
    button_image_url : "images/XPButtonUploadText_61x22.png",
    button_placeholder_id : "spanButtonPlaceholder1",
    button_width: 61,
    button_height: 22,

    // Flash Settings
    flash_url : "js/swfupload.swf",
    custom_settings : {
    progressTarget : "fsUploadProgress1",
    cancelButtonId : "btnCancel1"
    },

    // Debug Settings
    debug: false
    });

    upload2 = new SWFUpload({
    // Backend Settings
    upload_url: "PictureAction.action",
    post_params: {"SESSID" : "file"}, // File Upload Settings
    file_size_limit : "200", // 200 kb
    file_types : "*.jpg;*.gif;*.png",
    file_types_description : "Image Files",
    file_upload_limit : "10",
    file_queue_limit : "5", // Event Handler Settings (all my handlers are in the Handler.js file)
    file_dialog_start_handler : fileDialogStart,
    file_queued_handler : fileQueued,
    file_queue_error_handler : fileQueueError,
    file_dialog_complete_handler : fileDialogComplete,
    upload_start_handler : uploadStart,
    upload_progress_handler : uploadProgress,
    upload_error_handler : uploadError,
    upload_success_handler : uploadSuccess,
    upload_complete_handler : uploadComplete, // Button Settings
    button_image_url : "images/XPButtonUploadText_61x22.png",
    button_placeholder_id : "spanButtonPlaceholder2",
    button_width: 61,
    button_height: 22,

    // Flash Settings
    flash_url : "js/swfupload.swf", swfupload_element_id : "flashUI2", // Setting from graceful degradation plugin
    degraded_element_id : "degradedUI2", // Setting from graceful degradation plugin custom_settings : {
    progressTarget : "fsUploadProgress2",
    cancelButtonId : "btnCancel2"
    }, // Debug Settings
    debug: false
    });      }
        
    </script>
      </head>
      
      <body>
      <div id="header">
    <h1 id="logo"><a href="../">SWFUpload</a></h1>
    <div id="version">v2.2.0</div>
    </div>
      <div id="content">
    <h2>Multi-Instance Demo</h2>
        <form action="pictureAction" method="post" name="thisform" enctype="multipart/form-data">
         <p>This page demonstrates how multiple instances of SWFUpload can be loaded on the same page.
    It also demonstrates the use of the graceful degradation plugin and the queue plugin.</p>
    <table>
    <tr valign="top">
    <td>
    <div>
    <div class="fieldset flash" id="fsUploadProgress1">
    <span class="legend">Large File Upload Site</span>
    </div>
    <div style="padding-left: 5px;">
    <span id="spanButtonPlaceholder1"></span>
    <input id="btnCancel1" type="button" value="Cancel Uploads" onclick="cancelQueue(upload1);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size: 8pt;" />
    <br />
    </div>
    </div>
    </td>
    <td>
    <div>
    <div class="fieldset flash" id="fsUploadProgress2">
    <span class="legend">Small File Upload Site</span>
    </div>
    <div style="padding-left: 5px;">
    <span id="spanButtonPlaceholder2"></span>
    <input id="btnCancel2" type="button" value="Cancel Uploads" onclick="cancelQueue(upload2);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size: 8pt;" />
    <br />
    </div>
    </div>
    </td>
    </tr>
    </table>
        </form>
        </div>
      </body>
    </html>
    页面的源代码
      

  3.   


    swfupload_element_id : "flashUI2", // Setting from graceful degradation plugin
    degraded_element_id : "degradedUI2", // Setting from graceful degradation plugin  
    1,LZ去swfupload.js那查看一下SWFUload對象有紅色的那兩個屬性沒。
    2,建議LZ去官網下源碼。
    3,下次貼代碼請用[ code=HTML ] [/ code]括起來。直接黏貼,讓人看得很不爽的。
      

  4.   


    所以,lz應該要在頁面上吧那兩個刪掉。要不,看你的SWFUpload對象初始化不了。也就加載不了upload2對象的swf。
      

  5.   

    http://wenku.baidu.com/view/2b1b12d528ea81c758f578a5.html