摘要:
<script>functiontoScript(val){varvalue=val.valuevalue=value.replace(/"/gi,""").replace(/'/gi,"'")valArr=value.split("\r\n")value=""for(i=0;i<valArr.length;i++){value+=(i==0)?"... 阅读全文
摘要:
<script>functionregInput(obj,reg,inputStr){vardocSel=document.selection.createRange()if(docSel.parentElement().tagName!="INPUT")returnfalseoSel=docSel.duplicate()oSel.text=""varsrcRange=obj.crea... 阅读全文
摘要:
<scriptlanguage=javascript>varDS_x,DS_y;functiondateSelector()//构造dateSelector对象,用来实现一个日历形式的日期输入框。{varmyDate=newDate();this.year=myDate.getFullYear();//定义year属性,年份,默认值为当前系统年份。this.month=myDate.g... 阅读全文
摘要:
<inputtype="checkbox"onpropertychange="for(i=0;i<T2.length;i++){with(T2[i]){disabled=!this.checked,style.background=!this.checked?'#ececec':'#ffffff'}}"checked><br><inputname="T2"typ... 阅读全文