上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
FROM:http://kb.cnblogs.com/a/1401568/年月日 星期<HTML><HEAD> <TITLE> New Document </TITLE><script language="JavaScript">//单个数字配零function getDouble(number){var numbers=["0","1","2","3","4","5","6" Read More
posted @ 2012-07-03 10:07 tangrongyue Views(341) Comments(0) Diggs(0) Edit
当一个HTML元素的属性用js改变的时候,都能通过 onpropertychange来捕获。例如一个 <input name="text1" id="text1" />对象的value属性被页面的脚本修改的时候,onchange无法捕获到,而onpropertychange却能够捕获。也就是说:onpropertychange事件在用键盘每改变一下文本框的值或用js改变其值便会触发一下,而onchange只有在用键盘改变其值,然后在失去焦点(onblur)后才触发,用js改变其值不能触发!onpropertychange和onchange都不 Read More
posted @ 2012-07-02 23:42 tangrongyue Views(983) Comments(0) Diggs(0) Edit
现在有个金额 的文本框,要求金额保留两位小数,如果格式不正确,则光标继续返回在这个文本框,html代码:aaa:<input type="text" id="aaa" name="aaa" value="0.00" onchange="checkDecimal(this);"><br></br>bbb:<input type="text" id="bbb" name="bbb" value=&q Read More
posted @ 2012-07-02 23:30 tangrongyue Views(3546) Comments(0) Diggs(0) Edit
在写页面时,我们有时会有这样的需求,要下拉框可选可输入,该脚本就是可输可选控件.该脚本是根据网上某大侠源脚本改编而成,现记录在此,以备后用.新增功能:支持模糊定位、支持上下箭选择、支持注释层功能、支持按回车键从下拉框中选择选项源码引自:http://blog.csdn.net/cxzhq2002 资源来自:http://jiangzhengjun.iteye.com/blog/455171效果图://下拉框选项所对应的层的名字 var SELECT_DIV="SELECT_DIV_"; //注释层的名字 var NODE_DIV="NODE_DIV_"; Read More
posted @ 2012-07-01 17:06 tangrongyue Views(13220) Comments(1) Diggs(0) Edit
<select id="department" onchange="" style="width:150px;"></select>departmentList = oBook.departmentList;var departmentSelect = document.getElementById("department");departmentSelect.options.length=0;/**清空下拉框的值*/if((departmentList!=null)&&(d Read More
posted @ 2012-07-01 16:57 tangrongyue Views(3465) Comments(0) Diggs(0) Edit
代码:<table onmouseover="this.style.backgroundColor='#ff0000'" onmouseout="this.style.backgroundColor='#ffffff'"><tr><td>A</td><td>B</td></tr><tr><td>C</td><td>D</td></tr></table> Read More
posted @ 2012-07-01 10:30 tangrongyue Views(270) Comments(0) Diggs(0) Edit
哈哈哈哈!!!!!!!! Read More
posted @ 2012-07-01 10:28 tangrongyue Views(199) Comments(0) Diggs(0) Edit
// 对Date的扩展,将 Date 转化为指定格式的String // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) // 例子: // (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423 // (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9: Read More
posted @ 2012-06-30 16:56 tangrongyue Views(790) Comments(0) Diggs(0) Edit
来自http://new.dlgzy.com/bbs/show.asp?id=42&bd=8&totable=1日期时间脚本库方法列表Date.prototype.isLeapYear判断闰年Date.prototype.Format日期格式化Date.prototype.DateAdd日期计算Date.prototype.DateDiff比较日期差Date.prototype.toString日期转字符串Date.prototype.toArray日期分割为数组Date.prototype.DatePart取日期的部分信息Date.prototype.MaxDayOfDate Read More
posted @ 2012-06-30 16:49 tangrongyue Views(317) Comments(0) Diggs(0) Edit
【原创】一、函数列表 [1.字符串函数]函数名描述举例CHARINDEX用来寻找一个指定的字符串在另一个字符串中的起始位置SELECT CHARINDEX('ACCP','My Accp Course',1 )返回:4LEN返回传递给它的字符串长度SELECT LEN('SQL Server课程')返回:12LOWER把传递给它的字符串转换为小写SELECT LOWER('SQL Server课程')返回:sql server课程UPPER把传递给它的字符串转换为大写SELECT UPPER('sql server课程&# Read More
posted @ 2012-06-29 22:33 tangrongyue Views(285) Comments(0) Diggs(0) Edit
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页