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

解决方案 »

  1.   

    楼主,能帮帮忙告诉我怎么配置吗,我昨晚刚下的,弄了半天配置不好啊……我确实急等着用,网站就差后台图片上传问题了,人家催的又紧……帮帮忙了,谢谢!!!!
      

  2.   

    我下的这个实例单独部署时还行 不过一集成到我们的框架里样式就显示不出按钮来了 ,配置的话 我基本就是配置好 JS里面的路径就好了