日期:2014-05-17 浏览次数:20585 次
<!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>Web图片批量上传控件演示页面</title>
<script type="text/javascript" src="ImageUploader/ImageUploader.js" charset="utf-8"></script>
</head>
<body>
<div><a href="asp.net/images.aspx">查看上传的图片</a></div>
<div id="msg"></div>
<script language="javascript" type="text/javascript">
var imgUploader = new ImageUploader();
imgUploader.Config["PostUrl"] = "http://localhost/php/upload.php";
window.onload = function()
{
imgUploader.Init();
}
</script>
</body>
</html>
$(document).ready(function () {
var session = 'fileload/' + $("#getsession ").val();
$("#uploadify").uploadify({
'uploader': 'Scripts/jquery.uploadify-v2.1.4/uploadify.swf', // 做上传的Flash插件
'script': 'FilesUpLoad.ashx', // 服务器处理页面(支持多种语言,例如您可以修改成PHP、ASP、JSP等语言)
// 'scriptData': { 'UserID': ASPSESSID, 'AUTHID': auth },
'cancelImg': 'Scripts/jquery.uploadify-v2.1.4/cancel.gif', // 关闭按钮的图片地址
'folder': session, // 保存文件的文件夹
&