123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <!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 type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/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;">You browser doesn't have Flash installed.</div>
- <h3>Gears runtime</h3>
- <div id="gears_uploader" style="width: 450px; height: 330px;">You 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;">You browser doesn't have Silverlight installed.</div>
- <h3>HTML 5 runtime</h3>
- <div id="html5_uploader" style="width: 450px; height: 330px;">You 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;">You browser doesn't have BrowserPlus installed.</div>
- <h3>HTML 4 runtime</h3>
- <div id="html4_uploader" style="width: 450px; height: 330px;">You browser doesn't have HTML 4 support.</div>
- </div>
- <br style="clear: both" />
- <input type="submit" value="Send" />
- </form>
- <script type="text/javascript">
- $(function() {
-
- $("#flash_uploader").pluploadQueue({
-
- runtimes : 'flash',
- 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 : {width : 320, height : 240, quality : 90},
-
- flash_swf_url : '../../js/plupload.flash.swf'
- });
-
- $("#gears_uploader").pluploadQueue({
-
- 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 : {width : 320, height : 240, quality : 90}
- });
-
- $("#silverlight_uploader").pluploadQueue({
-
- 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 : {width : 320, height : 240, quality : 90},
-
- silverlight_xap_url : '../../js/plupload.silverlight.xap'
- });
-
- $("#html5_uploader").pluploadQueue({
-
- 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 : {width : 320, height : 240, quality : 90}
- });
-
- $("#browserplus_uploader").pluploadQueue({
-
- 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 : {width : 320, height : 240, quality : 90}
- });
-
- $("#html4_uploader").pluploadQueue({
-
- runtimes : 'html4',
- url : 'upload.php',
- unique_names : true,
- filters : [
- {title : "Image files", extensions : "jpg,gif,png"},
- {title : "Zip files", extensions : "zip"}
- ]
- });
- });
- </script>
- </body>
- </html>
|