设为首页 加入收藏

TOP

JSP编程技术测试题
2014-11-04 08:30:04 来源: 作者: 【 】 浏览:24
Tags:JSP 编程 技术 测试题

1.当多个用户请求同一个JSP页面时,Tomcat服务器为每个客户启动一个(B)


A)进程 B)线程 C)程序 D服务。


2.不是JSP运行必须的是(D)


A)操作系统


B)JavaJDK


C)支持Jsp的Web服务器


D)数据库


3.下列说法哪一项是正确的(C)


A)Apache用于ASP技术所开发网站的服务器


B)IIS用于CGI技术所开发网站的服务器


C)Tomcat用于JSP技术所开发网站的服务器


D)WebLogic用于PHP技术所开发网站的服务器


4.下面描述错误的是(C)


A)HTML文件必须由开头,标记结束。


B)文档头信息包含在与之间。


C)在和之间可以包含和<body>等信息。</p><br/><p>D)文档体包含在<body>和</body>标记之间</p><br/><p>5.设置文档体背景颜色的属性是(C )</p><br/><p>A)text B)bgcolor C) background D) link</p><br/><p>6.( D)是标题标记。</p><br/><p>A)<p>标记 B)<br>标记 C)<hr>标记 D)<hn></p><br/><p>7.超级链接是互联网的灵魂,下面哪个是正确的链接标记( A )</p><br/><p>A)<a href=”http://www.sina.com” ” title=”新浪网” >新浪网</a></p><br/><p>B)<a target=”http://www.sina.com” ” title=”新浪网” >新浪网</a></p><br/><p>C)<a href=”新浪网” title=”新浪网” > http://www.sina.com </a></p><br/><p>D)<a target=”新浪网” title=”新浪网” >http://www.sina.com</a></p><br/><p>8.CSS选择器通过被规则指定的标记,对文档中使用该标记的内容进行统一的外观控制。下面那些不是CSS选择器( D )</p><br/><p>A)标记选择器 B)类型选择器 C)ID选择器 D)名称选择器</p><br/><p>9.可以在以下哪个( )标记之间插入Java程序片?(A)</p><br/><p>A)<% 和 %> B)<% 和 /></p><br/><p>C)</ 和 %> D)<% 和 !></p><br/><p>10.JSP的Page编译指令的属性Language的默认值是:(A)</p><br/><p>A)Java B)C</p><br/><p>C)C# D)SQL</p><br/><p>11.可以在以下哪个( )标记之间插入变量与方法声明?(B)</p><br/><p>A)<% 和 %> B)<%! 和 %></p><br/><p>C)</ 和 %> D)<% 和 !></p><br/><p> </p><br/><p>12.<jsp:useBean id=”bean的名称” scope=”bean的有效范围”/>动作标记中,scope的值不可以是(D)。</p><br/><p>A)page B)request</p><br/><p>C)session D)response</p><br/><p>13.下列变量声明在( )范围内有效。(C)。</p><br/><p><%! Date dateTime;</p><br/><p>int countNum;</p><br/><p>%></p><br/><p>A)从定义开始处有效,客户之间不共享</p><br/><p>B)在整个页面内有效,客户之间不共享</p><br/><p>C)在整个页面内有效,被多个客户共享</p><br/><p>D)从定义开始处有效,被多个客户共享</p><br/><p>14.JSP页面可以在“<%=”和“%>”标记之间放置Java表达式,直接输出Java表达式的值。组成“<%=”标记的各字符之间(B)。</p><br/><p>A)可以有空格 B)不可以有空格</p><br/><p>C)必须有空格 D)不确定</p><br/><p>15.下面不属于JSP内置对象的是(D)</p><br/><p>A)out对象 B)respone对象 C)application对象 D)page对象</p><br/><p>16.调用getCreationTime()可以获取session对象创建的时间,该时间的单位是(C)。</p><br/><p>A)秒 B)分秒 C)毫秒 D)微秒</p><br/><p>17.一个典型的HTTP请求消息包括请求行、多个请求头和( B )</p><br/><p>A)响应行 B)信息体 C)响应行 D)响应头</p><br/><p>18.out对象是一个输出流,其输出各种类型数据并换行的方法是(C)</p><br/><p>A)out.print( ) B)out.newLine( )</p><br/><p>C)out.println( ) D)out.write( )</p><br/><p>19.out对象是一个输出流,其输出不换行的方法是(A)</p><br/><p>A)out.print( ) B)out.newLine( )</p><br/><p>C)out.println( ) D)out.write( )</p><br/><p>20.能在浏览器的地址栏中看到提交数据的表单提交方式是( B )</p><br/><p>A)submit B)get</p><br/><p>C)post D)out</p><br/><p>21.可以利用JSP动态改变客户端的响应,使用的语法是(A)</p><br/><p>A)response.setHeader() B)response.outHeader()</p><br/><p>C)response.writeHeader() D)response.handlerHeader()</p><br/><p>22.JSP页面程序片中可以使用下列哪个方法将strNumx=request.getParamter(“ix”)得到的数据类型转换为Double类型( )</p><br/><p>A)Double.parseString(strNumx) B) Double.parseDouble(strNumx)</p><br/><p>C)Double.parseInteger(strNumx) D)Double.parseFloat(strNumx)</p><br/><p>23.下面不属于<input>标记中的name属性取值的是(D)</p><br/><p>A)password B)hidden C)submit D)textarea</p><br/><p>24.<select>用于在表单中来定义下拉列表框和滚动列表框控件,哪个属性指定列表框的类型( A )</p><br/><p>A)size B)value C)selected D)checked</p><br/><p>25.java script执行表单验证一般都发生在用户单击“提交”按钮后,数据提交服务器之前,onValidate()函数返回值为true时( C )。</p><br/><p>A)验证不通过,提交数据给服务器</p><br/><p>B)验证不通过,不提交数据给服务器</p><br/><p>C)验证通过,提交数据给服务器</p><br/><p>D)验证通过,不提交数据给服务器</p><br/><p>26.正则表达式中,表示0个或一个的元字符是( D )</p><br/><p>A)$ B)[^] C)( ) D) </p><br/><p>27.下面常用的正则表达式中,表示数字的是 ( A )</p><br/><p>A)^\d+(\.\d+)*$ B)^[0-9]*[1-9][0-9]*$</p><br/><p>C)^(- \d+)(\.\d+) $ D)[\u4e00-\u9fa5]</p><br/><p>28.JavaBean可以通过相关jsp动作指令进行调用。下面哪个不是JavaBean可以使用的jsp动作指令?(D)</p><br/><p>A)<jsp:useBean> B)<jsp:setProperty></p><br/><p>C)<jsp:getProperty> D)<jsp:setParameter></p><br/><p>29.JavaBean可以通过相关jsp动作指令进行调用。下面哪个不是JavaBean可以使用的jsp动作指令?(D)</p><br/><p>A)<jsp:useBean> B)<jsp:setProperty></p><br/><p>C)<jsp:getProperty> D)<jsp:setParameter></p><br/><p>30.JavaBean的作用范围可以是page、request、session和( A )四个作用范围中的一种。</p><br/><p>A)application B)local</p><br/><p>C)global D)class</p><br/><p>31.下列哪个作用范围的Bean,被Web服务目录下所有用户共享,任何客户对Bean属性的修改都会影响到其他用户。(A)</p><br/><p>A)application B)request</p><br/><p>C)page D)session</p><br/><p>32.使用<jsp:setProperty>动作标记可以在JSP页面中设置Bean的属性,但必须保证Bean有对应的什么方法。(B)</p><br/><p>A)SetXxx方法 B)setXxx方法</p><br/><p>C)getXxx方法 D)GetXxx方法</p><br/><p>33.在JSP页面中使用<jsp:setProperty name=”beanid” property=”bean的属性” value=”字符串” />格式给Long类型的Bean属性赋值,会调用哪个数据类型转换方法。(A)</p><br/><p>A)Long.parseLong(String s) B)Integer.parseInt(Stirng s)</p><br/><p>C)Double.parseDouble(String s) D)不确定</p><br/><p>34.在JSP页面中使用<jsp:setProperty name=”bean的名字” property =”*” />格式,将表单参数为Bean属性赋值,property=”*”格式要求Bean的属性名字(B)</p><br/><p>A)必须和表单参数类型一致 B)必须和表单参数名称一一对应</p><br/><p>C)必须和表单参数数量一致 D)名称不一定对应</p><br/><p>35.下面是FileOutputStream对象写入的代码片段:</p><br/><p>String filesMess=”abcdef”;</p><br/><p>FileOutputStream outf=new FileOutputStream(fileName);</p><br/><p>BufferedOutputStream bufferout=</p><br/><p>new BufferedOutputStream(outf);</p><br/><p>byte b[]=this.filesMess.getBytes();</p><br/><p>bufferout.write(b);</p><br/><p>bufferout.flush();</p><br/><p>bufferout.close();</p><br/><p>outf.close();</p><br/><p>代码执行后,文件中会写入哪个字符串的字节码(B )</p><br/><p>A)”filesMess” B)”abcdef”</p><br/><p>C)”b” D)不确定</p><br/><p>36.BufferedReader处理Reader类中的方法外,还提供了public <a title="class in java.lang" href="file:/D:/%E7%9B%B8%E5%85%B3Java%E5%B7%A5%E5%85%B7/docs/api/java/lang/String.html">String</a> readLine()方法,该方法读入一行文本,这里的“一行”指字符串以“\n”或什么做结尾。()</p><br/><p>A)\t B)\f</p><br/><p>C)\r D)\p</p><br/><p>37.下列代码中rs为查询得到的结果集,代码运行后表格的每一行有几个单元格(B )</p><br/><p>while(rs.next()){</p><br/><p>out.print(“<tr>”);</p><br/><p>out.print(“<td>”+rs.getString(1)+”</td>”);</p><br/><p>out.print(“<td>”+rs.getString(2)+”</td>”);</p><br/><p>out.print(“<td>”+rs.getString(3)+”</td>”);</p><br/><p>out.print(“<td>”+rs.getString(“publish”)+”</td>”);</p><br/><p>out.print(“<td>”+rs.getFloat(“price”)+”</td>”);</p><br/><p>out.print(“</tr>”);</p><br/><p>}</p><br/><p>A)4 B)5 C)6 D)不确定</p><br/><p>38.下面是加载JDBC<a href=http://www.cppentry.com/list.php?fid-57-page-1.htm style=text-decoration:underline;font-size:14px;color:#F70968; target=_blank>数据库</a>驱动的代码片段:</p><br/><p>try{</p><br/><p>Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);</p><br/><p>}</p><br/><p>catch(ClassNotFoundException e){</p><br/><p>out.print(e);</p><br/><p>}</p><br/><p>该程序加载的是哪个驱动?()</p><br/><p>A)JDBC-ODBC桥连接驱动 B)部分Java编写本地驱动</p><br/><p>C)本地协议纯Java驱动 D)网络纯Java驱动</p><br/><p>39.下面Servlet的哪个方法用来为请求服务,在Servlet生命周期中,Servlet每被请求一次它就会被调用一次。( A )</p><br/><p>A)service() B)init()</p><br/><p>C)doPost() D)destroy()</p><br/><p>40.阅读下面代码片段:</p><br/><p>RequestDispatcher dispatcher=request.getRequestDispatcher(“a.jsp”);</p><br/><p>dispatcher.forward(request,response);</p><br/><p>关于该段代码的作用,下列叙述哪项是正确的?(B)</p><br/><p>A)页面重定向到a.jsp页面 B)将请求转发到a.jsp页面</p><br/><p>C)从a.jsp定向到当前页面 D)从a.jsp转发到当前页面</p><br/><p>1.Internet和intranet的含义意义相同。( 错 )</p><br/><p>2.Web开发技术包括客户端和服务器端的技术。(对 )</p><br/><p>3.在网页中图形文件与网页文件是分别存储的。(对)</p><br/><p>4.超级链接不仅可以将文本作为链接对象,也可以将图像作为链接对象。(对)</p><br/><p>5.盒子模型中的top、right、bottom、left属性取值即可以是像素数,也可是百分比,并且只有父容器的position取值为非static值时才有效。(对)</p><br/><p>6.超级链接<a>标记的target属性取值为链接的目标窗名,可以是parent、blank、self、top。(错)</p><br/><p>7.JSP引擎执行字节码文件的主要人物之一是直接将HTML内容发给客户端。(对)</p><br/><p>8.JSP页面中的指令标记、JSP动作标记统称为脚本元素。(错)</p><br/><p>9.在“<%!”和“%>”标记之间声明的Java的方法在整个页面内有效。(对)</p><br/><p>10.程序片变量的有效范围与其声明位置有关,即从声明位置向后有效,可以在声明位置后的程序片、表达式中使用。(对)</p><br/><p>11.不可以用一个page指令指定多个属性的取值。(错)</p><br/><p>12.jsp:param动作标记不能单独使用,必须作为jsp:include、jsp:forward标记等的子标记使用,并为它们提供参数。(对)</p><br/><p>13.Tomcat服务器支持直接使用application对象。(错)</p><br/><p>14.利用response对象的sendRedirect方法只能实现本网站内的页面跳转,但不能传递参数。(错)</p><br/><p>15.contentType属性用来设置JSP页面的MIME类型和字符编码集,取值格式为”MIME类型”或”MIME类型;charset=字符编码集”,response对象调用addHeader方法修改该属性的值。(错)</p><br/><p>16.response对象的_<span style="text-decoration: underline;">sendRedirect(URL url)</span><span style="text-decoration: underline;">_</span>__方法可以将当前客户端的请求转到其他页面去。</p><br/><p>17.JavaBean的属性必须声明为private,方法必须声明为public访问类型。(对)</p><br/><p>18.RandomAccessFile类即不是输入流类InputSteam的子类,也不是输出流类OutputStream的子类,但它同时实现了DataInput和DataOutput接口。(对)</p><br/><p>19.在MVC模式的Web开发中,“视图”、“模型”和“控制器”分别对应着“JSP页面”、“JavaBean”和“Serlvet”,以Servlet为核心。(对)</p><br/><p>20.doGet()和doPost()方法分别处理客户端GET和POST方法发送的请求。(对)</p><br/><p>1.W3C是指___<span style="text-decoration: underline;">万维网联盟</span><span style="text-decoration: underline;">_</span>______。</p><br/><p>2.当今比较流行的技术研发模式是<span style="text-decoration: underline;">__C/S__</span>和_<span style="text-decoration: underline;">_B/S_</span>_的体系结构来实现的。</p><br/><p>3.HTML文件是<span style="text-decoration: underline;">纯文本</span>文件格式,可以用文本编辑器进行编辑制作。</p><br/><p>4.将一个图像作为一个超级链接,用到了_<span style="text-decoration: underline;">_<img></span>__标记。</p><br/><p>5.URL是Uniform Resource Locator的缩写,中文称之为 <span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">统一资源定位器</span><span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">。</span></p><br/><p>6.JSP页面的基本构成元素,其中变量和方法声明(Declaration)、表达式(Expression)和Java程序片(Scriptlet)统称为<span style="text-decoration: underline;">JSP</span><span style="text-decoration: underline;">脚本元素</span> 。</p><br/><p>7.“<%!”和“%>”之间声明的方法在整个页面内有效,称为<span style="text-decoration: underline;">页面的成员方法</span> 。</p><br/><p>8.JSP页面中,输出型注释的内容写在<span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">“</span><span style="text-decoration: underline;"><!–</span><span style="text-decoration: underline;">”</span><span style="text-decoration: underline;"> </span>和<span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">“</span><span style="text-decoration: underline;">–></span><span style="text-decoration: underline;">”</span><span style="text-decoration: underline;"> </span>之间。</p><br/><p>9.Page指令的属性Language的默认值是_<span style="text-decoration: underline;">Java</span>____。</p><br/><p>10.<select>标记中的size属性默认值为__<span style="text-decoration: underline;">_1_</span>__。</p><br/><p>11.表单的提交方法包括_<span style="text-decoration: underline;">__post__</span>_____和___<span style="text-decoration: underline;">_get__</span>____方法。</p><br/><p>12.out对象的_<span style="text-decoration: underline;">_ </span><span style="text-decoration: underline;">out.flush()</span><span style="text-decoration: underline;">__</span>___方法,功能是输出缓冲的内容。</p><br/><p>13.使用Bean首先要在JSP页面中使用<span style="text-decoration: underline;"> import </span>指令将Bean引入。</p><br/><p>14.创建JavaBean的过程和编写Java类的过程基本相似,可以在任何Java的<a href=http://www.cppentry.com style=text-decoration:underline;font-size:14px;color:#F70968; target=_blank>编程</a>环境下完成 <span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">编写、编译和发布</span><span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">。</span></p><br/><p>15.response对象的<span style="text-decoration: underline;"> </span>s<span style="text-decoration: underline;">etContentType()</span><span style="text-decoration: underline;"> </span>用来定义服务器发送给客户端的MIME类型。</p><br/><p>16.Servlet中使用Session对象的步骤为:调用<span style="text-decoration: underline;"> HttpServletRequest.getSession() </span>得到Session对象,查看Session对象,在会话中保存数据。</p><br/><p>17.MVC(Model-View-Controller)是八十年代为<a href=http://www.cppentry.com style=text-decoration:underline;font-size:14px;color:#F70968; target=_blank>编程</a>语言<span style="text-decoration: underline;"> Smalltalk-80 </span>发明的一种软件设计模式。</p><br/><p>18.控制器主要负责两方面的动作:<span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">把用户的请求分发到相应的模型</span><span style="text-decoration: underline;"> </span>;<span style="text-decoration: underline;"> </span><span style="text-decoration: underline;">将模型的改变及时反映到视图上</span><span style="text-decoration: underline;"> </span>。</p><br/><p>19.在DOM接口规范中,有四个基本接口:__<span style="text-decoration: underline;">Node</span>__、__<span style="text-decoration: underline;">Nodelist</span>___、_<span style="text-decoration: underline;">NamedNodeMap</span>__和_<span style="text-decoration: underline;">Document</span>__。</p><br/><p>1.什么是B/S模式?</p><br/><p>2.如何保证页面跳转时当前页面与跳转页面之间的联系?</p><br/><p>3.在<%!和%>之间声明的变量和在<%和%>之间声明的变量有何区别?</p><br/><p>4.如何在页面的程序片中使用Bean?</p><br/><p>5.使用MVC模式有什么好处?</p><br/></span></font></td> </tr> </table> <!--//投票--> <table width="98%" border="0" cellspacing="0" cellpadding="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word;' align="center"> <tr> </tr> <tr> <td colspan="2" align="center" class="page" height="25"></td> </tr> <tr align="right"> <td colspan="2" height="25" > <SCRIPT LANGUAGE="JavaScript" src="https://www.cppentry.com/images/default/bencandy.js"></SCRIPT> 【<a href="javascript:doZoom(18)">大</a> <a href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a>】【<a href="javascript:doPrint()">打印</a>】 <input type=hidden value=1 name="h1" id="h1"> 【<a href="javascript:ft(1)" id="Maiweb1">繁体</a>】【<a href="https://www.cppentry.com/member/post.php?job=postnew&fid=43" target=_blank>投稿</a>】【<a href="https://www.cppentry.com/do/job.php?job=collect&fid=43&id=10980">收藏</a>】 【<a href="https://www.cppentry.com/do/job.php?job=recommend&fid=43&id=10980" target=_blank>推荐</a>】【<a href="https://www.cppentry.com/do/job.php?job=report&fid=43&id=10980" target=_blank>举报</a>】【<a href="https://www.cppentry.com/do/comment.php?fid=43&id=10980" target=_blank>评论</a>】 【<a href="javascript:window.close()">关闭</a>】 【<a href="javascript:window.close()"></a><a href="#">返回顶部</a>】</td> </tr> <tr> <td colspan="2" style="text-align:right"> <div> <div style="float:right"> <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"32"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> </div> <div style="float:right; font-size:14px">分享到: </div> </div> </td> </tr> <tr class="nextpage"> <td width="50%" align="left"><a href="bencandy.php?fid=43&id=10981" onclick="">上一篇</a>:<a href="bencandy.php?fid=43&id=10981" onclick="" title="上海某计算机信息技术有限公司网络技术工程师笔试题">上海某计算机信息技术有限公司网..</a></td> <td width="50%" align="right" height="25"><a href="bencandy.php?fid=43&id=10979" onclick="">下一篇</a>:<a href="bencandy.php?fid=43&id=10979" onclick="" title="Java Web开发面试题一套(5)">Java Web开发面试题一套(5)</a></td> </tr> </table> </td> </tr> <tr> <td class="foot"> <h3 class="L"></h3> <h3 class="R"></h3> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" id="view_article_bbs"> <tr> <td class="head"> <h3 class="L"></h3> <span class="TAG"> </span> <h3 class="R"></h3> </td> </tr> <tr> <td class="middle"> <script type="text/javascript" id="wumiiRelatedItems"></script><div style="display:none"><!--访问统计,这段代码,会加快内容的打开速度,但是会影响右边列表的打开速度,<script src='http://pw.cnzz.com/c.php?id=80674837' language='JavaScript' charset='gb2312'></script>--></div></td> </tr> <tr> <td class="foot"> <h3 class="L"></h3> <h3 class="R"></h3> </td> </tr> </table> <!-- --> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable" id="commentTable"> <tr> <td class="head"> <h3 class="L"></h3> <span class="TAG">评论</span> <h3 class="R"></h3> </td> </tr> <tr> <td class="middle"> <SCRIPT LANGUAGE="JavaScript"> <!-- document.write('<span id="comment_show"><img alt="内容加载中,请稍候..." src="https://www.cppentry.com/images/default/ico_loading3.gif"></span>'); document.write('<div style="display:none;"><iframe src="https://www.cppentry.com/do/comment_ajax.php?fid=43&aid=10980&iframeID=comment_show" width=0 height=0 name="comment_show"></iframe></div>'); //--> </SCRIPT> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <form name="form_comment" id="form_comment" method="post" target="comment_show" action="https://www.cppentry.com/do/comment_ajax.php?fid=43&aid=10980&iframeID=comment_show"> <tr style="display:" id="comment_username_tr"> <td width="16%"><span class="L">帐  号:</span></td> <td width="84%"><span class="R"> <input type="text" name="username" id="comment_username" size="12"> 密码: <input type="password" name="password" id="comment_password" size="12"> (<a href="https://www.cppentry.com/do/reg.php" target="_blank"><u>新用户注册</u></a>)</span></td> </tr> <tr style="display:" id="comment_yzimg_tr"> <td width="16%"><span class="L">验 证 码:</span></td> <td width="84%"> <input id="yzImgNum" type="text" name="yzimg" size="8"> <SCRIPT LANGUAGE="JavaScript"> <!-- document.write('<img border="0" id="yz_Img" name="imageField" onclick="this.src=this.src+Math.random();" src="https://www.cppentry.com/do/yzimg.php?'+Math.random()+'">'); //--> </SCRIPT> </td> </tr> <tr> <td width="16%"><span class="L">表  情:</span></td> <td width="84%"> <style type="text/css"> <!-- .selected {filter:Alpha(opacity=100);border:1px solid #FF9900} .unselected {filter:Alpha(opacity=50);border:1px solid #EDF8DD} --> </style> <SCRIPT LANGUAGE="JavaScript"> <!-- var prevIcon; function icon(num){ num.className="selected"; if(typeof(prevIcon)!="undefined"){ prevIcon.className="unselected"; }else{ document.all.firstface.className="unselected"; } if(num.className=="unselected"){ num.className="selected"; } prevIcon=num; document.getElementById("commentface").value=num.childNodes(0).id ; } //--> </SCRIPT> <table border=0 cellspacing=0 cellpadding=0> <tr> <td class="selected" onClick="icon(this)" id="firstface" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/1.gif" width="20" height="20" id="1"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/2.gif" width="20" height="20" id="2"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/3.gif" width="20" height="20" id="3"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/4.gif" width="20" height="20" id="4"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/5.gif" width="20" height="20" id="5"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/6.gif" width="20" height="20" id="6"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/7.gif" width="20" height="20" id="7"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/8.gif" width="20" height="20" id="8"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/9.gif" width="20" height="20" id="9"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/10.gif" width="20" height="20" id="10"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/11.gif" width="20" height="20" id="11"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/12.gif" width="20" height="20" id="12"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/13.gif" width="20" height="20" id="13"></td> <td class="unselected" onClick="icon(this)" style="cursor:hand"><img src="https://www.cppentry.com/images/default/faceicon/14.gif" width="20" height="20" id="14"></td> <td align="center" valign="top"> <input name="commentface" type="hidden" value="1"> </td> </tr> </table> </td> </tr> <tr> <td width="16%"><span class="L">内  容:</span></td> <td width="84%"><span class="R"> <textarea name="content" cols="50" rows="5" id="comment_content" onKeyDown="quickpost(event)"></textarea> </span></td> </tr> <tr> <td width="16%"> <script language="JavaScript"> <!-- cnt = 0; function quickpost(event){ if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83)){ cnt++; if (cnt==1){ post_comment(); }else{ alert('内容正在提交...'); } } } function post_comment(){ if(document.getElementById("comment_yzimg_tr").style.display==''){ if(document.getElementById("yzImgNum").value==''){ alert('验证码不能为空!'); return false; } } if(document.getElementById("comment_content").value==''){ alert('内容不能为空!'); return false; } document.getElementById("form_comment").submit(); document.getElementById("comment_content").value=''; if(document.getElementById("yzImgNum")!=null){ document.getElementById("yzImgNum").value=''; document.getElementById("yz_Img").src="https://www.cppentry.com/do/yzimg.php?"+Math.random();; } limitTime=parseInt('5'); limitComment(); } //--> </script> </td> <td width="84%"><span class="R"> <input type="button" id="comment_submit" onclick="post_comment()" name="Submit" value="提交" class="button"> <input type="hidden" name="action" value="post"> </span></td> </tr></form> </table> </td> </tr> <tr> <td class="foot"> <h3 class="L"></h3> <h3 class="R"></h3> </td> </tr> </table> </div> <div class="Side"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable" id="sonSortName"> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" > <script>document.write(unescape('%3Cdiv id="hm_t_45532"%3E%3C/div%3E%3Cscript charset="utf-8" src="http://crs.baidu.com/t.js?siteId=238ce0d9669a08cae1971b03e0b2931a&planId=45532&async=0&referer=') + encodeURIComponent(document.referrer) + '&title=' + encodeURIComponent(document.title) + '&rnd=' + (+new Date) + unescape('"%3E%3C/script%3E'));</script> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable"> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable"> <script type="text/javascript"> document.write('<a style="display:none!important" id="tanx-a-mm_16790798_2355298_35944706"></a>'); tanx_s = document.createElement("script"); tanx_s.type = "text/javascript"; tanx_s.charset = "gbk"; tanx_s.id = "tanx-s-mm_16790798_2355298_35944706"; tanx_s.async = true; tanx_s.src = "http://p.tanx.com/ex?i=mm_16790798_2355298_35944706"; tanx_h = document.getElementsByTagName("head")[0]; if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild); </script> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable"> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dragTable"> </table> </div> </div> <div class="cleardiv"></div> <!-- --> <SCRIPT LANGUAGE="JavaScript"> <!--//目的是为了做风格方便 document.write('</div>'); //--> </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> <!-- clickEdit.init(); //--> </SCRIPT> <div id="copyright"> Copyright@https://www.cppentry.com all rights reserved <a href="http://www.miibeian.gov.cn" target="_blank">粤ICP备13067022号-3</a><br> Powered by <a href="http://www.qibosoft.com" target="_blank">qibosoft V7.0</a> Code © 2003-11 <a href="http://bbs.qibosoft.com/" target="_blank">qibosoft</a> <br> </div> </body> </html>