您好,欢迎访问三七文档
HTMLbodylink=#00FF00alink=#0000FFvlink=#9900FFh1style=color:red;align='center'设置不同的连接颜色/h1h3style=color:red;align='center'测试body标签/h3palign='center'ahref=#默认的连接颜色/a/ppalign='center'ahref=#正在按下的连接颜色/a/ppalign='center'ahref=#访问过后的连接颜色/a/pmetahttp-equiv=refreshcontent=3;URL=请稍等,3妙后将自动进入转到嘉兴学院首页。olliwindow98/liliwindow2000/liliwindow2003/liulliwindow2003web/liliwindow2003stand/liliwindow2003fdsf/liliwindow2003fdsffdfdfdfd/li/ul/ololtype=ali这是以序列类型a开头的第一行的内容/lili这是以序列类型a开头的第二行的内容/lioltype=Astart=3li这是以序列A类型C开头的第一行的内容/lili这是以序列A类型C开头的第二行的内容/lioltype=1start=51PREpre白日依山尽/prepre黄河入海流/prepre欲穷千里目/prepre更上一层楼/prehrwidth=450pxcolor=redsize=5px<>©版权h1align=center图片的超链接/h1centerahref=#imgsrc=1.jpg//adivstyle=float:leftframesetrows=20%,*framesrc=top.htmlframesetcols=50%,*framesrc=left.htmlframesrc=right1.htmlname=right/frameset/framesethtmlscripttype=text/javascriptfunctioncheck(){varyears=document.getElementsByName(a);varvalues=document.getElementById(b);year=years[0].value;values.value=((year%4==0&&year%100!=0)||year%400==0)?(year+是闰年):(year+不是闰年);}/scriptbodytableborder=1bgcolor='#D2FF00'width='400px'trtdcolspan=2align='center'fontcolor=redb判断指定的年份是否为闰年b/font/td/trtrtd请输入一个四位数的年份/tdtdinputtype=textname='a'value=''inputtype=buttonvalue='判断'onclick='check()'/td/trtrtdcolspan=2inputtype='text'id=bstyle=width:380px/td/tr/table/body/html!DOCTYPEHTMLPUBLIC-//W3C//DTDHTML4.01Transitional//EN=text/javascriptfunctioncheck(){varcheck=document.getElementsByName(1);varchecked=document.getElementsByName(0);if(checked[0].checked!=true){for(vari=0;icheck.length;i++){check[i].checked=true;}}else{for(vari=0;icheck.length;i++){if(check[i].checked==false)check[i].checked=true;elsecheck[i].checked=false;}}}/scriptheadtitleNewDocument/titlelinkrel=stylesheettype=text/csshref=q.css/metaname=Generatorcontent=EditPlusmetaname=Authorcontent=metaname=Keywordscontent=metaname=Descriptioncontent=/headbodytableborder=1width=552pxheight=110pxtrbgcolor=#D0FF35td选项/tdtd用户名称/tdtd密码/tdtd注册日期/td/trtrbgcolor=#FFFFCFtdinputtype=checkboxname=1/tdtd纯净水/tdtdchunjingshui666/tdtd2008-11-14/td/trtrbgcolor=#FFFFCFtdinputtype=checkboxname=1/tdtd小草/tdtdxiaocao888/tdtd2008-12-10/td/trtrbgcolor=#FFFFCFtdinputtype=checkboxname=1/tdtd城市中的狼/tdtdcity12345/tdtd2009-2-6/td/tr/tableinputtype=checkboxname=0[ahref=#onclick=check()全选/反选/a]/body/htmlbodyscripttype=text/javascriptwindow.onload=function(){window.setInterval(check(),100);}functioncheck(){vardivnode=document.getElementById(6);varnum=document.getElementById(3).value.length;divnode.innerText=您还能输入+(150-num)+个字符的祝福信息,发送给你最想祝福的人吧;}/scriptdivid=6/divbr/textareacols=70rows=8value=''id='3'/textarea/body/htmltd{text-align:center;font-weight:bold;font-size:15px;}a{text-decoration:none;}JSP6linkrel=stylesheettype=text/csshref=css/reg.css/scripttype=text/javascriptfunctionlogin1(){window.open(charge3.html);}/scriptdivstyle=border:1pxsolid#DFDFDF;width:434px;height:233px;position:absolute;left:400px;top:230px;background-color:white;imgsrc=images/top.jpg/inputtype=imagesrc=images/a.pngonclick=login1()/图片按钮代替submit按钮的图片代码格式是inputtype=imagename=...src=...onClick=document.formName.submit()代替reset按钮的代码图片格式是ahref=javascript:document.formName.reset();imgborder=0src=.../aahref=jiaoshiguanli.htmltarget=rightframesetframeborder=0rows=160px,*framespacing=0pxframesrc=top.htmlmarginheight=0px/framesetcols=370px,*framespacing=0pxframesrc=left.html/framesrc=xinxi2.htmlmarginwidth=0pxname=right//frameset/framesetnoframes/noframes内置对象Login.htmlformaction==request.getParameter(name);Stringpassword=request.getParameter(psd);Stringa=request.getParameter(1);if(a.equals(2)){if(name.equals(teacher)&&password.equals(teacher)){HttpSessions=request.getSession();s.setAttribute(username,name);response.sendRedirect(teacher.jsp);}elseresponse.sendRedirect(login.html);}if(a.equals(1)){response.sendRedirect(student.jsp);HttpSessions=request.getSession();s.setAttribute(username,name);}if(a.equals(3)){response.sendRedirect(admin.jsp);HttpSessions=request.getSession();s.setAttribute(username,name);}%Admin.jsp%!intnum=0;%%num++;Stringname=(String)request.getSession().getAttribute(username);out.write(欢迎登录,您的用户名是:+name+\n);out.write(您是本页的第+num+访问者);%JSP基础%!publicstaticintmultiply(intn){intsum=1;for(inti=1;i=n;i++){sum*=i;}returnsum;}%%inttotal=multiply(8);out.print(8的阶乘是+total);%br/%@pagelanguage=javaimport=java.util.*pageEncoding=utf-8%bodyh4align=center字体大小显示程序/h4hr/center%for(inti=1;i=7;i++){out.print(fonts
本文标题:JSP复习
链接地址:https://www.777doc.com/doc-4458114 .html