上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: jQuery 1.特点: 小巧 功能强 跨浏览器 插件 2.使用 实际是js文件 a) 复制js到WebRoot b) 页面script src="jquery.js" charset=""/script 3.核心对象及常用方法和属性 a)名称 jQuery和$ 用$找出来的对象叫jQuery对象 用document找出来的对象叫Dom对象 b)dom和jquery对象转换 jQuery对象.get(0) ---dom对象 $(dom对象)---jQuery对象 c)jQuery对象方法 .show() 显示 .hide() 隐藏 .toggle() 显示或隐藏切换 $("div" 阅读全文
posted @ 2011-01-06 15:20 Look_Sun 阅读(360) 评论(0) 推荐(0) 编辑
摘要: function ResizeImage(ImgD,FitWidth,FitHeight){ var image=new Image(); image.src=ImgD.src; var wb=image.width/FitWidth; var hb=image.height/FitHeight; var b=wb=hb?wb:hb; if(b1) { ImgD.width=image.width/b; ImgD.height=image.height/b; } else { ImgD.width=image.width; ImgD.height=image.height; }}//获取D 阅读全文
posted @ 2011-01-06 11:10 Look_Sun 阅读(323) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Data; using System.Configuration; namespace cookiescontrol { /// summary /// Cookie操作 阅读全文
posted @ 2011-01-04 13:27 Look_Sun 阅读(601) 评论(1) 推荐(0) 编辑
摘要: htmlheadtitle纯CSS实现圆角效果/titlestyle type="text/CSS" div.RoundedCorner{background: #9bd1fa}b.rtop, b.rbottom{display:block;background: #fff}b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #9bd1fa}b.r1{margin: 0 5px}b.r2{margin: 0 3px}b.r3{margin: 0 2px}b.rtop b. 阅读全文
posted @ 2011-01-04 13:14 Look_Sun 阅读(2138) 评论(1) 推荐(0) 编辑
摘要: 网上找了很多,不实用,要不兼容问题,这个可以!input禁止键盘及中文输入,但又不能用readonly 而且还需兼容ie 和 ff , 为了完成这功能费了蛮大功夫,呵呵,在此记录以便日后之用;另外禁止粘贴 onpaste="return false"view plainprint?!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN" HTMLHEADTITLENewDocument/TITLEscript//样式style="ime-mode:disabled"禁止中文输入functionnoPermitInp 阅读全文
posted @ 2011-01-04 13:13 Look_Sun 阅读(2921) 评论(1) 推荐(0) 编辑
摘要: 1.js 格式化字符串为时间yyyy-MM-ddvar myDate=new String("2010-8-5 8:49:55");document.write(myDate.split(" ",1));2.stringstr3=String.Format("{0:N6}",56789);//格式化小数点后 六位3.ToString字符型转换 转为字符串12345.ToString("n"); //生成 12,345.0012345.ToString("C"); //生成 ¥12,345.001 阅读全文
posted @ 2010-12-22 15:30 Look_Sun 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽:document.body.clientWidth网页可见区域高:document.body.clientHeight网页可见区域宽:document.body.offsetWidth (包括边线和滚动条的宽)网页可见区域高:document.body.offsetHeight(包括边线的宽)网页正文全文宽:document.body.scrollWidth网页正文全文高:document.body.scrollHeight网页被卷去的高:document.body.scrollTop网页被卷去的左:document.body.scrollLeft网页正文部分上:window. 阅读全文
posted @ 2010-12-15 14:08 Look_Sun 阅读(20095) 评论(0) 推荐(1) 编辑
摘要: html xmlns="http://www.w3.org/1999/xhtml"head runat="server" title无标题页/title script type="text/javascript" !--/*** ==================================================================================================** 类名:CLASS_MSN_MESSAGE** 功能:提供类似MSN消息框** 示例:www.qpsh.com------------------- 阅读全文
posted @ 2010-12-13 16:38 Look_Sun 阅读(1312) 评论(0) 推荐(0) 编辑
摘要: 1.让文字竖着写td style="Writing-mode:tb-rl;"博客园/td2.牛B的js脚本打开一个网站,例如http://witer666.cnblogs.com把下面的代码直接粘贴到IE的地址栏里,点回车,看看出现什么东西了!哈哈javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ 阅读全文
posted @ 2010-12-13 10:47 Look_Sun 阅读(179) 评论(0) 推荐(0) 编辑
摘要: !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" xml:lang="en"head titleDrag and Drop/title meta http-equiv="Content-Type" content="text/html;charset=UTF-8" / style type="text 阅读全文
posted @ 2010-12-07 10:03 Look_Sun 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页