08 2013 档案

摘要:using System;using System.Web;using System.IO;public class add : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/html"; int n = 0; //第一步,读取静态页面. string path = context.Request.MapPath("01add.htm"); string html = File.ReadAllTe 阅读全文
posted @ 2013-08-10 10:14 nqsan 阅读(250) 评论(0) 推荐(0)
摘要:@num 阅读全文
posted @ 2013-08-10 10:11 nqsan 阅读(560) 评论(0) 推荐(0)
摘要:using System;using System.Web;using System.Text;public class Search : IHttpHandler{ /// /// 处理http请求 /// /// 请求上下文(浏览器request上文,服务器response是下文) public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; //接受请求 var name = context.Request.QueryString[" 阅读全文
posted @ 2013-08-09 00:32 nqsan 阅读(451) 评论(0) 推荐(0)
摘要://1.获取到数据方式一 test //2方式二 //3.方式三用原生javascript做. 阅读全文
posted @ 2013-08-09 00:31 nqsan 阅读(401) 评论(0) 推荐(0)
摘要://加载函数 $(function () { //效果一.图片的hover事件. //给sendBtn注册hover事件 $('#sendBox input.sendBtn').hover(function () { //鼠标按钮悬浮事件 $(this).css('backgroundPosition', '0px -195px'); }, function () { //移除事件. $(this).css('backgroundPosition', '-117px -165px'); }); //效果二.话题选中 阅读全文
posted @ 2013-08-03 23:50 nqsan 阅读(303) 评论(0) 推荐(0)
摘要:腾讯微博 //文字选中代码 $.fn.selectRange = function (start, end) { var curObj = $(this).get(0); //获取当前选中 if (!curObj) return; //非curObj对象,返回. else if (curObj.setSelectionRange) { //设置属性. curObj.focus(); curObj.setSelectionRange(start, end); } /* WebKit */ else if (curObj.createTextRange) { // 创建TextRange v... 阅读全文
posted @ 2013-08-03 23:48 nqsan 阅读(160) 评论(0) 推荐(0)
摘要:请输入名称: 请输入网址: 阅读全文
posted @ 2013-08-02 22:55 nqsan 阅读(218) 评论(0) 推荐(0)