zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!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" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Plupload - Queue widget example</title>
<style type="text/css">
    body {
        font-family:Verdana, Geneva, sans-serif;
        font-size:13px;
        color:#333;
        background:url(../bg.jpg);
    }
</style>
<link rel="stylesheet" href="../../js/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" />
 
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
 
<script type="text/javascript" src="../../js/plupload.js"></script>
<script type="text/javascript" src="../../js/plupload.gears.js"></script>
<script type="text/javascript" src="../../js/plupload.silverlight.js"></script>
<script type="text/javascript" src="../../js/plupload.flash.js"></script>
<script type="text/javascript" src="../../js/plupload.browserplus.js"></script>
<script type="text/javascript" src="../../js/plupload.html4.js"></script>
<script type="text/javascript" src="../../js/plupload.html5.js"></script>
<script type="text/javascript" src="../../js/jquery.plupload.queue/jquery.plupload.queue.js"></script>
 
</head>
<body>
 
<form method="post" action="../dump.php">
    <h1>Queue widget example</h1>
 
    <p>Shows the jQuery Plupload Queue widget and under different runtimes.</p>
 
    <div style="float: left; margin-right: 20px">
        <h3>Flash runtime</h3>
        <div id="flash_uploader" style="width: 450px; height: 330px;">Your browser doesn't have Flash installed.</div>
 
        <h3>Gears runtime</h3>
        <div id="gears_uploader" style="width: 450px; height: 330px;">Your browser doesn't have Gears installed.</div>
    </div>
 
    <div style="float: left; margin-right: 20px">
        <h3>Silverlight runtime</h3>
        <div id="silverlight_uploader" style="width: 450px; height: 330px;">Your browser doesn't have Silverlight installed.</div>
 
        <h3>HTML 5 runtime</h3>
        <div id="html5_uploader" style="width: 450px; height: 330px;">Your browser doesn't support native upload. Try Firefox 3 or Safari 4.</div>
    </div>
 
    <div style="float: left; margin-right: 20px">
        <h3>BrowserPlus runtime</h3>
        <div id="browserplus_uploader" style="width: 450px; height: 330px;">Your browser doesn't have BrowserPlus installed.</div>
 
        <h3>HTML 4 runtime</h3>
        <div id="html4_uploader" style="width: 450px; height: 330px;">Your browser doesn't have HTML 4 support.</div>
    </div>
 
    <br style="clear: both" />
 
    <input type="submit" value="Send" />
</form>
 
<script type="text/javascript">
$(function() {
    // Setup flash version
    $("#flash_uploader").pluploadQueue({
        // General settings
        runtimes : 'flash',
        url : '../upload.php',
        max_file_size : '10mb',
        chunk_size : '1mb',
        rename : true,
        filters : [
            {title : "Image files", extensions : "jpg,gif,png"},
            {title : "Zip files", extensions : "zip"}
        ],
 
        // Resize images on clientside if we can
        resize : {width : 320, height : 240, quality : 90},
 
        // Flash settings
        flash_swf_url : '../../js/plupload.flash.swf'
    });
 
    // Setup gears version
    $("#gears_uploader").pluploadQueue({
        // General settings
        runtimes : 'gears',
        url : '../upload.php',
        max_file_size : '10mb',
        chunk_size : '1mb',
        unique_names : true,
        filters : [
            {title : "Image files", extensions : "jpg,gif,png"},
            {title : "Zip files", extensions : "zip"}
        ],
 
        // Resize images on clientside if we can
        resize : {width : 320, height : 240, quality : 90}
    });
 
    // Setup silverlight version
    $("#silverlight_uploader").pluploadQueue({
        // General settings
        runtimes : 'silverlight',
        url : '../upload.php',
        max_file_size : '10mb',
        chunk_size : '1mb',
        unique_names : true,
        filters : [
            {title : "Image files", extensions : "jpg,gif,png"},
            {title : "Zip files", extensions : "zip"}
        ],
 
        // Resize images on clientside if we can
        resize : {width : 320, height : 240, quality : 90},
 
        // Silverlight settings
        silverlight_xap_url : '../../js/plupload.silverlight.xap'
    });
 
    // Setup html5 version
    $("#html5_uploader").pluploadQueue({
        // General settings
        runtimes : 'html5',
        url : '../upload.php',
        max_file_size : '10mb',
        chunk_size : '1mb',
        unique_names : true,
        filters : [
            {title : "Image files", extensions : "jpg,gif,png"},
            {title : "Zip files", extensions : "zip"}
        ],
 
        // Resize images on clientside if we can
        resize : {width : 320, height : 240, quality : 90}
    });
 
    // Setup browserplus version
    $("#browserplus_uploader").pluploadQueue({
        // General settings
        runtimes : 'browserplus',
        url : '../upload.php',
        max_file_size : '10mb',
        chunk_size : '1mb',
        unique_names : true,
        filters : [
            {title : "Image files", extensions : "jpg,gif,png"},
            {title : "Zip files", extensions : "zip"}
        ],
 
        // Resize images on clientside if we can
        resize : {width : 320, height : 240, quality : 90}
    });
 
    // Setup html4 version
    $("#html4_uploader").pluploadQueue({
        // General settings
        runtimes : 'html4',
        url : '../upload.php',
        unique_names : true,
        filters : [
            {title : "Image files", extensions : "jpg,gif,png"},
            {title : "Zip files", extensions : "zip"}
        ]
    });
});
</script>
 
</body>
</html>