<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>SWFUpload Demos - Features Demo</title>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<link href="css/featuresdemo.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../swfupload/swfupload.js"></script>
<script type="text/javascript" src="js/featuresdemo.js"></script>
<script type="text/javascript" src="js/handlers.js"></script>
<script type="text/javascript">
var suo;
window.onload = function() {
// Check to see if SWFUpload is available
if (typeof(SWFUpload) === "undefined") {
return;
}
// Instantiate a SWFUpload Instance
suo = new SWFUpload({
// Backend Settings
upload_url: "../featuresdemo/upload.php?get_name=get_value", // I can pass query strings here if I want
post_params: { "post_name1": "post_value1", "post_name2": "post_value2" }, // Here are some POST values to send. These can be changed dynamically
file_post_name: "Filedata", // This is the "name" of the file item that the server-side script will receive. Setting this doesn't work in the Linux Flash Player
requeue_on_error: false,
http_success : [123, 444],
// File Upload Settings
file_size_limit : "100 MB",
file_types : "*.*",
file_types_description : "All Files",
file_upload_limit : "10",
button_image_url : "../featuresdemo/images/button_270x22.png",
button_width : 270,
button_height : 22,
button_action : SWFUpload.BUTTON_ACTION.SELECT_FILES,
button_placeholder_id : "spanButtonPlaceholder",
button_text : '<span class="btnText">Select Files...</span>',
button_text_style : ".btnText { font-size: 10; font-weight: bold; font-family: MS Shell Dlg; }",
button_text_top_padding : 3,
button_text_left_padding : 100,
// Event Handler Settings
swfupload_loaded_handler : FeaturesDemoHandlers.swfUploadLoaded,
file_dialog_start_handler : FeaturesDemoHandlers.fileDialogStart,
file_queued_handler : FeaturesDemoHandlers.fileQueued,
file_queue_error_handler : FeaturesDemoHandlers.fileQueueError,
file_dialog_complete_handler : FeaturesDemoHandlers.fileDialogComplete,
upload_start_handler : FeaturesDemoHandlers.uploadStart,
upload_progress_handler : FeaturesDemoHandlers.uploadProgress,
upload_error_handler : FeaturesDemoHandlers.uploadError,
upload_success_handler : FeaturesDemoHandlers.uploadSuccess,
upload_complete_handler : FeaturesDemoHandlers.uploadComplete,
debug_handler : FeaturesDemoHandlers.debug,
// Flash Settings
flash_url : "../swfupload/swfupload.swf", // Relative to this file
// Debug Settings
debug: true // For the purposes of this demo I wan't debug info shown
});
};
</script>
</head>
<body>
<div id="header">
<h1 id="logo"><a href="../">SWFUpload</a></h1>
<div id="version">v2.1.0</div>
</div>
<div id="content">
<h2>Features Demo</h2>
<form>
The Features Demo allows you to experiment with all the features and settings that SWFUpload v2.0 offers.<br />
<br />
You can change all the settings except 'upload_url'.<br />
<br />
<strong>Your PHP Session ID is <?php echo session_id(); ?>.</strong> This is provided so you can see the Flash Player Cookie
bug in action. Compare this Session ID to the Session ID and Cookies displayed in the Server Data section
after an upload is complete (SWFUpload FP9 only).<br />
<br />
SWFUpload has <span id="spanLoadStatus" style="font-weight: bold;">not loaded</span><br />
<table class="layout">
<tr>
<td style="width: 316px;">
<div class="fieldset">
<span class="legend">Queue</span>
<div>
<select id="selQueue" size="15" style="width: 270px;">
</select>
</div>
<div>
<table class="btn">
<tr>
<td colspan="3"><span id="spanButtonPlaceholder"></span></td>
</tr>
</table>
</div>
<div>
<table class="btn">
<tr>
<td class="btn-left"></td>
<td class="btn-center"><button id="btnStartSelectedFile" type="button" class="action">Start Selected File</button></td>
<td class="btn-right"></td>
</tr>
</table>
</div>
<div>
<table class="btn">
<tr>
<td class="btn-left"></td>
<td class="btn-center"><button id="btnStopUpload" type="button" class="action">Stop Upload</button></td>
<td class="btn-right"></td>
</tr>
</table>
</div>
<div>
<table class="btn">
<tr>
<td class="btn-left"></td>
<td class="btn-center"><button id="btnCancelSelectedFile" type="button" class="action">Cancel Selected File</button></td>
<td class="btn-right"></td>
</tr>
</table>
</div>
<div>
<table class="btn">
<tr>
<td class="btn-left"></td>
<td class="btn-center"><button id="btnCancelSelectedFileNoEvent" type="button" class="action">Cancel Selected File (no event)</button></td>
<td class="btn-right"></td>
</tr>
</table>
</div>
</div>
<div class="fieldset" id="fsStaticSettings">
<span class="legend">Static Settings</span>
<div>
<div class="checkbox">
<input id="cbPreventSWFCaching" type="checkbox" />
<label for="cbPreventSWFCaching">prevent_swf_caching</label>
</div>
<table class="btn">
<tr>
<td class="btn-left"></td>
<td class="btn-center"><button id="btnReloadSWFUpload" type="button">Reload SWFUpload</button></td>
<td class="btn-right"></td>
</tr>
</table>
</div>
</div>
</td>
<td style="width: 316px;">
<div class="fieldset">
<span class="legend">Post Params</span>
<div>
<label for="txtAddFileParamName"><strong>File Post Param</strong> (Select a file first)</label>
<div style="margin-left: 10px; margin-bottom: 10px;">
<table>
<tr>
<td></td>
<td><strong>Name</strong></td>
<td><strong>Value</strong></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle; text-align: right;">Add:</td>
<td><input id="txtAddFileParamName" type="text" class="textbox" style="width: 100px;" />
</td>
<td><input id="txtAddFileParamValue" type="text" class="textbox" style="width: 100px;" />
</td>
<td><button id="btnAddFileParam" type="button"></button></td>
</tr>
<tr>
<td style="vertical-align: middle;">Remove:</td>
<td><input id="txtRemoveFileParamName" type="text" class="textbox" style="width: 100px;" /></td>
<td><button id="btnRemoveFileParam" type="button"></button></td>
<td></td>
</tr>
</table>
</div>
</div>
<label for="txtAddParamName" style="font-weight: bolder;">Global Post Params</label>
<div style="margin-left: 10px;">
<div>
<select id="selParams" size="5">
</select>
<button id="btnRemoveParam" type="button"></button>
</div>
<table>
<tr>
<td></td>
<td><strong>Name</strong></td>
<td><strong>Value</strong></td>
<td></td>
</tr>
<tr>
<td style="vertical-align: middle;">Add:</td>
<td><input id="txtAddParamName" type="text" class="textbox" />
</td>
<td><input id="txtAddParamValue" type="text" class="textbox" />
</td>
<td><button id="btnAddParam" type="button"></button></td>
</tr>
</table>
</div>
没有合适的资源?快使用搜索试试~ 我知道了~
swfupload文件上传控件
共101个文件
js:24个
gif:19个
php:18个
5星 · 超过95%的资源 需积分: 9 74 下载量 35 浏览量
2008-11-07
11:36:18
上传
评论
收藏 158KB RAR 举报
温馨提示
相当不错的上传控件,只是多文件上传和进度显示
资源推荐
资源详情
资源评论
收起资源包目录
swfupload文件上传控件 (101个子文件)
Global.asax 2KB
Global.asax 2KB
Default.aspx 4KB
Default.aspx 3KB
Login.aspx 1KB
upload.aspx 499B
upload.aspx 499B
ShowThumbnail.aspx 106B
thumbnail.aspx 98B
Web.Config 698B
Web.Config 397B
upload.aspx.cs 4KB
thumbnail.aspx.cs 1KB
Thumbnail.cs 732B
Default.aspx.cs 455B
test.aspx.cs 402B
default.css 6KB
default.css 6KB
featuresdemo.css 4KB
logo.gif 11KB
toobig.gif 4KB
toobig.gif 4KB
toobig.gif 4KB
uploadlimit.gif 2KB
uploadlimit.gif 2KB
uploadlimit.gif 2KB
zerobyte.gif 2KB
zerobyte.gif 2KB
zerobyte.gif 2KB
error.gif 2KB
error.gif 2KB
error.gif 2KB
cancelbutton.gif 1KB
btn_states.gif 936B
btn_parts.gif 935B
btn_center.gif 855B
btn_left.gif 850B
btn_right.gif 848B
index.htm 1KB
header-bg.jpg 423B
swfupload.js 36KB
featuresdemo.js 17KB
swfupload.swfobject.js 12KB
swfupload.swfobject.js 12KB
handlers.js 8KB
handlers.js 8KB
handlers.js 8KB
handlers.js 8KB
handlers.js 8KB
handlers.js 8KB
handlers.js 7KB
handlers.js 7KB
handlers.js 6KB
fileprogress.js 6KB
fileprogress.js 5KB
fileprogress.js 5KB
fileprogress.js 5KB
fileprogress.js 5KB
swfupload.queue.js 3KB
swfupload.queue.js 3KB
swfupload.queue.js 3KB
swfupload.queue.js 3KB
swfupload.queue.js 3KB
handlers.js 821B
index.php 14KB
index.php 5KB
index.php 5KB
index.php 4KB
index.php 4KB
index.php 4KB
index.php 3KB
index.php 3KB
upload.php 2KB
upload.php 2KB
thanks.php 2KB
upload.php 808B
thumbnail.php 783B
upload.php 488B
upload.php 488B
upload.php 488B
upload.php 339B
upload.php 232B
XPButtonNoText_160x22.png 2KB
XPButtonNoText_160x22.png 2KB
XPButtonUploadText_61x22.png 2KB
XPButtonUploadText_61x22.png 2KB
XPButtonUploadText_61x22.png 2KB
XPButtonUploadText_61x22.png 2KB
button_270x22.png 2KB
SmallSpyGlassWithTransperancy_17x18.png 1KB
TestImageNoText_65x29.png 1KB
add.png 733B
delete.png 715B
page_white_add.png 512B
page_white_add.png 512B
swfupload.swf 12KB
upload.aspx.vb 3KB
ShowThumbnail.aspx.vb 734B
Default.aspx.vb 579B
Thumbnail.vb 521B
共 101 条
- 1
- 2
lengxuepiao
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页