7、jQuery插件之uploadify文件上传(基于flash) 逃离我推掉我的手 2022-06-15 06:49 216阅读 0赞 <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Uploadify上传文件</title> <script src="jquery.min.js" type="text/javascript"></script> <script src="jquery.uploadify.min.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="uploadify.css"> <style type="text/css"> body \{ font: 13px Arial, Helvetica, Sans-serif; \} </style> </head> <body> <h1>Uploadify Demo</h1> <form> <div id="queue"></div> <input id="file\_upload" onClick="alt();" name="file\_upload" type="file" multiple="true"> </form> <script type="text/javascript"> <?php $timestamp = time();?> $(function() \{ $('\#file\_upload').uploadify(\{ 'formData' : \{ 'timestamp' : '<?php echo $timestamp;?>', 'token' : '<?php echo md5('unique\_salt' . $timestamp);?>' \}, 'swf' : 'uploadify.swf',//该文件必须有的 'uploader' : 'uploadify.php', //后台处理文件 \}); \}); </script> </body> </html> 参考文档:http://www.cnblogs.com/oec2003/archive/2010/01/06/1640027.html ![Center][] [Center]: /images/20220615/5f155059e02b4b4b8f39b913f5d4c964.png
还没有评论,来说两句吧...