爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
ASP教程
AJAX无刷新文件上传示例
AJAX无刷新文件上传示例
日期:2010-02-05 浏览次数:20968 次
以下是HTML网页特效代码,点击运行按钮可查看效果:
以下是程序代码
<!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> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>仿163网盘无刷新文件上传系统</title> </head> <body> <style> .fu_list { width:600px; background:#ebebeb; font-size:12px; } .fu_list td { padding:5px; line-height:20px; background-color:#fff; } .fu_list table { width:100%; border:1px solid #ebebeb; } .fu_list thead td { background-color:#f4f4f4; } .fu_list b { font-size:14px; } /*file容器样式*/ a.files { width:90px; height:30px; overflow:hidden; display:block; border:1px solid #BEBEBE; background:url(http://images.cnblogs.com/cnblogs_com/cloudgamer/fu_btn.gif) left top no-repeat; text-decoration:none; } a.files:hover { background-color:#FFFFEE; background-position:0 -30px; } /*file设为透明,并覆盖整个触发面*/ a.files input { margin-left:-350px; font-size:30px; cursor:pointer; filter:alpha(opacity=0); opacity:0; } /*取消点击时的虚线框*/ a.files, a.files input { outline:none;/*ff*/ hide-focus:expression(this.hideFocus=true);/*ie*/ } </style> <form id="uploadForm" action="File.ashx"> <table border="0" cellspacing="1" class="fu_list"> <thead> <tr> <td colspan="2"><b>上传文件</b></td> </tr> </thead> <tbody> <tr> <td align="right" width="15%" style="line-height:35px;">添加文件:</td> <td><a href="javascript:void(0);" class="files" id="idFile"></a> <img id="idProcess" style="display:none;" src="http://images.cnblogs.com/cnblogs_com/cloudgamer/loading.gif" /></td> </tr> <tr> <td colspan="2"><table border="0" cellspacing="0"> <thead> <tr> <td>文件路径</td> <td width="100"></td> </tr> </thead> <tbody id="idFileList"> </tbody> </table></td> </tr> <tr> <td colspan="2" style="color:gray">温馨提示:最多可同时上传 <b id="idLimit"></b> 个文件,只允许上传 <b id="idExt"></b> 文件。 </td> </tr> <tr> <td colspan="2" align="center" id="idMsg"><input type="button" value="开始上传" id="idBtnupload" disabled="disabled" /> <input type="button" value="全部取消" id="idBtndel" disabled="disabled" /> </td> </tr> </tbody> </table> </form> <script type="text/javascript"> var isIE = (document.all) ? true : false; var $ = function (id) { return "string" == typeof id ? document.getElementById(id) : id; }; var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } var Extend = function(destination, source) { for (var property in source) { destination[property] = source[property]; } } var Bind = function(object, fun) { return function() { return fun.apply(object, arguments); } } var Each = function(list, fun){ for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); } }; //文件上传类 var FileUpload = Class.create(); FileUpload.prototype = { //表单对象,文件控件存放空间 initialize: function(form, folder, options) { this.Form
上一篇:Asp Base64 Unicode编码与解码函数 中文编码使用GB2312方式非UTF-8
下一篇:ASP调用带参数的MSSQL存储过程,并返回临时表记录集
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
一个简单的用户登录接口asp实现
如何让搜索引擎搜到更多的网站内容
ASP终极防范上传漏洞
请教怎么破解这种网页登录
How to Build Tables Dynamically(二)_客户端相关_ASP教程
配置ASP运行环境 让网站动起来
asp对象化之:基于adodb.stream的文件操作类
提交表单时怎么调用多个下拉菜单数据到一个文本框中
Msxml2.ServerXMLHTTP异步发送请求无效解决办法
推荐阅读
更多>
innerHTML 到指定Id的第一行,该如何处理
设计FileSystemObject_ASP FSO专题_ASP教程
访问统计程序(三 应用篇)
Asp Object 之:Write
Ubound和InStr函数 求解,该怎么处理
怎么将ip转换成字符型
以前搜集的一些资料---如何建立自己的上传组件的编程思路_组件开发_ASP教程
前台所有.asp后缀用ISAPI_Rewrite都映射成html,每个地址都要写行RewriteRule?该怎么处理
faq3_ASP技巧_ASP教程
怎么在生成的HTML页面上显示动态内容呢
asprise OCR撤销期限限制
如其实现,对一个表读取,显示出分类树形结果的效果
如果上传图片太大了如何报警呀!回复正确马上给分
用asp update.set修改数据库有关问题,高手帮忙看看
ASP 通用模板类
利用QrCode.Net生成二维码 asp.net mvc c
VBscript和JAVAscript的选择!_客户端相关_ASP教程
实现搜索结果的关键词变色标注的程序_ASP全文检索_ASP教程
设为首页代码怎样放到函数中解决方法
全正则的检测IP是否合法的函数_正则表达式_ASP教程