欢迎来到天天文库
浏览记录
ID:34050773
大小:395.00 KB
页数:66页
时间:2019-03-03
《全国小学英语教师教学技能大赛初赛试题集精选》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、acickCount=0;functioncearCommentContent(oObject){cickCount++;if(cickCount==1){oObject.vaue="";}}functioncheckForm(form){if(document.a("takform").username.vaue==""){aert("请输入用户名!");document.a("takform").username.focus();returnfase;}if(document.a("takform").password.vaue=="")");document.a("takfor
2、m").password.focus();returnfase;}if(document.a("takform").content.vaue.ength>150){aert容超过了150个字符');document.a("takform").content.seect();returnfase;}varre=newRegExp("[^x20]+");if(re.test(document.a("takform").content.vaue)==fase){aert("请输入你的讨论内容!");document.a("takform").content.focus();returnf
3、ase;}if(document.a("takform").content.vaue.ength>150){aert('');document.a("takform").content.seect();returnfase;}TakFunc();returntrue;}functiongetPage(){varcUr=document.ocation.href;varp=cUr.astIndexOf("_");if(p<=0)returncUr;if(cUr.charAt(p-1)!='c')cUr=cUr.substring(0,p)+".htm";returncUr;}varg_
4、PageUr=getPage();functionTakFunc(){document.a("takform").ur.vaue=g_PageUr;}document.a("takur").href="http://comments.xinhuanet.com/comment?ur="+g_PageUr;document.a("takur2").href="http://comments.xinhuanet.com/comment?ur="+g_PageUr;varcUr2=document.ocation.href;functiongetPage2(){varp2=cUr2.ast
5、IndexOf("_");if(p2<=0)returncUr2;if(cUr2.charAt(p2-1)!='c')cUr2=cUr2.substring(0,p2)+".htm";returncUr2;}varg_PageUr2=getPage2();varurPath1=g_PageUr2.spit("/");varen=urPath1.ength;varurPath2=urPath1[en-1].spit(".");varurPath="http://comments.home.news.cn/"+urPath1[en-3]+"/"+urPath1[en-2]+"/"+urP
6、ath2[0]+".js";varurPath3=urPath2[0].spit("_");varid=urPath3[1];functiongetId(){document.getEementById("ur").vaue=cUr2;}functionproc(){if(typeof(getCommentCount)=='function'&&typeof(getCommentArray)=='function'){varcount=getCommentCount();varstr='';if(count>0){str+='7、border="1"cespacing="1"cepadding="1"bordercoor="#F0F0F0">';str+='');str+=(''+commentArray[i].
7、border="1"cespacing="1"cepadding="1"bordercoor="#F0F0F0">';str+='');str+=(''+commentArray[i].
此文档下载收益归作者所有