12 2010 档案

摘要: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 阅读(306) 评论(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 阅读(20120) 评论(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 阅读(1327) 评论(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 阅读(195) 评论(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 阅读(161) 评论(0) 推荐(0)
摘要:textarea id="tValue" style="overflow-y:hidden; height:20px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'"/textarea 阅读全文
posted @ 2010-12-07 09:57 Look_Sun 阅读(394) 评论(0) 推荐(0)
摘要:官方地址:http://bassistance.de/jquery-plugins/jquery-plugin-validation/jQuery用户手册:http://jquery.org.cn/visual/cn/index.xml$(document).ready(function(){/* 设置默认属性 */$.validator.setDefaults({submitHandler: f... 阅读全文
posted @ 2010-12-02 16:03 Look_Sun 阅读(646) 评论(0) 推荐(0)