摘要: function checkLoginName11(str) { var flag=SchoolProject.Web.Leader.AddTeacherModify.CheckLoginName(str); if(flag.value==true) { document.getElementById("Tb_LoginName").innerText=""; alert('用户名已经存在,请重新... 阅读全文
posted @ 2010-05-13 15:24 JavaScript初学者 阅读(232) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> function MathRand() { var Num=""; for(var i=0;i<6;i++) { Num+=Math.floor(Math.random()*10); } document.getElementById("Lb_Random").innerText=Num; document.getE... 阅读全文
posted @ 2010-05-13 15:02 JavaScript初学者 阅读(492) 评论(2) 推荐(0)
摘要: select ID,name from c_Table1 union select '' as ID,'所有' as name from c_Table1 阅读全文
posted @ 2010-05-13 14:48 JavaScript初学者 阅读(407) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> function MonthOfDay() { var year=document.getElementById("Tb_year").value; if(year.length!=4) { alert('请输入正确的年份!'); return; } if(isNaN(year)==true) { alert('年份必须为... 阅读全文
posted @ 2010-05-13 10:52 JavaScript初学者 阅读(356) 评论(0) 推荐(1)
摘要: function closeit() //等待10秒自动关闭窗口{   setTimeout("window.opener=null;window.open('','_self');self.close();return false;",10000) //毫秒   return false;} 阅读全文
posted @ 2010-05-12 17:59 JavaScript初学者 阅读(1629) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> function initArray(){ this.length=initArray.arguments.length; for(var i=0;i<this.length;i++){ this[i]=initArray.arguments[i]; }}  var strA="";  function TimeLi... 阅读全文
posted @ 2010-05-12 17:55 JavaScript初学者 阅读(280) 评论(0) 推荐(0)