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
阅读全文
摘要: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["
阅读全文
摘要://1.获取到数据方式一 test //2方式二 //3.方式三用原生javascript做.
阅读全文
摘要://加载函数 $(function () { //效果一.图片的hover事件. //给sendBtn注册hover事件 $('#sendBox input.sendBtn').hover(function () { //鼠标按钮悬浮事件 $(this).css('backgroundPosition', '0px -195px'); }, function () { //移除事件. $(this).css('backgroundPosition', '-117px -165px'); }); //效果二.话题选中
阅读全文
摘要:腾讯微博 //文字选中代码 $.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...
阅读全文

浙公网安备 33010602011771号