一起答
主观

以下是实现手机销售信息查询的网页加入信息功能的部分代码,其网页显示效果类似图6-9,请将(3)~(6)空缺处的代码填写完整。

 <!--以下为实现加入信息功能的部分-->

 <form. name="fonn1" method="post" action="main_search.asp">

 <td>

 <div align="left">

 <table width="404" border=-"0">

    <tr>

    <td align="right" width="121">

      <font size="2">请选择品牌</font>

    </td>

    <td align="left" width="194" valign="bottom">

       <p><(3) size="1" name="D1">

           <option (4) value="mow">]摩托罗拉</option>

           <option value="(5)">诺基亚</option>

        < (6) >

       </p>

    </td>

    <td align="left" width="69" valign="middle">

        <p>

           <input type="submit" value="提交" name="B1">

        </p>

    </td>

    </tr>

 </table></div></td>

 </form>

参考答案
查看试卷详情
相关试题
  1. 如果网页及素材均存放在本级目录"D:\documents\webpages\"中,网页side.html中有一幅图片msf.gif存放在"D:\documents\webpages\pic\"目录中。为了在改变整个网页存放的目录设置后,仍然能在浏览器中浏览到该图片,图片的src属性值应设置为(7)。  

    A."D:\documents\webpages\msf.gif"  B."\webpages\msf.gif"  C."\pic\msf.gif"

  2. 假设连接的数据记录集当前指向的记录见表6-10。

    写出以下ASP代码经过IIS服务器解释后的结果。

       <td align="center" width="20%">

       <a href="<%=rs ("Type") %>.asp"><font size="2"><%=rs("Type") %></font></a>

  3. 以下是实现手机销售信息查询的网页加入信息功能的部分代码,其网页显示效果类似图6-9,请将(3)~(6)空缺处的代码填写完整。

     <!--以下为实现加入信息功能的部分-->

     <form. name="fonn1" method="post" action="main_search.asp">

     <td>

     <div align="left">

     <table width="404" border=-"0">

        <tr>

        <td align="right" width="121">

          <font size="2">请选择品牌</font>

        </td>

        <td align="left" width="194" valign="bottom">

           <p><(3) size="1" name="D1">

               <option (4) value="mow">]摩托罗拉</option>

               <option value="(5)">诺基亚</option>

            < (6) >

           </p>

        </td>

        <td align="left" width="69" valign="middle">

            <p>

               <input type="submit" value="提交" name="B1">

            </p>

        </td>

        </tr>

     </table></div></td>

     </form>

  4. 手机销售信息查询的网页中使用的数据库连接引擎是什么?连接的后台数据库文件名是什么?

  5. 认真阅读以下关于静态网页制作和动态网页编程的技术说明,根据要求回答问题1~问题6。

    【说明】

     一、静态网页制作

     某电子商务公司用ASP实现了一个用于手机销售信息查询的网页,主页文件名为“index.html”,其文档内容如下。

     [index.html文档内容]

     <html>

     <head>

        <title>易搜手机资讯广场</title>

     </head>

     <frameset cols="198, *" "border=0">

        <frame name="side" src="side.html" scrolling="No">

        <frameset rows='96, *" "border=0">

          <frame name="top" src="top.html" scrolling="No">

          <frame name="main" src="main.asp" scrolling="Auto">

        </frameset>

     </frameset>

     <body>

     </body>

     </html>

     二、动态网页编程

     图6-9是用户按品牌型号进行查询时的网页(main.asp)在IE浏览器上运行后的效果图。表6-9是手机信息数据库表结构。

    其中,Brand字段下共有两种数据:moto、nokia,分别代表摩托罗拉、诺基亚。

     【main.asp文档的内容】

     <html>

     <head>

       <title>易搜手机资讯广场</title>

     </head>

     <body bgcolor="#ffffff" background="bg1.gif" text="#000000">

     <table border="0" cellpadding="0" cellspacing="0" width="100%">

     <left>

     <!-以下为实现按手机型号搜索功能的部分-->

     <from name="form1" method="post" action="main_search.asp">

     <div align="left">

        <table width="400" border="0">

          <tr>

          <td align="right" width="120">请输入<font color="ff0000">型号</font>关键字:</td>

          <td align="left" width="40">

             <input name="Searchtxt" type="text">

          <td colspan="2" align="left">

             <input type="submit" name="Submit" value="搜索"></td>

          </tr>

        </table>

     </div>

     </form>

     </left>

     </table>

     <!-以下为浏览手机信息部分功能>

     <table>

     <center>

     <%dim searchtext searchtext=Request.Form. ("Mobel")

        exec="select * from mod order by Type ASC"

        set conn=server.createobject ("adodb.connection")

        dbpath=server.mappath ("mod.mdb")

        conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data source="&dbpath

        set rs=server.createobject ("adodb.recordset")

        rs.open exec, conn, 1, 3

        <!-省略关于分页功能的代码>

     %>

     <div align="right">

        <table border="1" width="100%">

          <tr>

          <th width="20%"><font color="#996633" size="2">品牌</font></th>

          <th width="20%"><font color="#996633" size="2">型号</font></th>

          <th width="20%"><font color="#996633" size="2">参考价格</fonr></th>

          <th width="40%"><font color="#996633" size="2">功能描述</font></th>

          </tr>

        </table><br>

        <% do while NOT rs.EOF and rowcount>0%>

        <div align="right">

          <table border="1" width="100%">

             <tr>

             <td align="center" width="20%"><font size="2"><%=rs (Brand) %></font></td>

             <td align="center" width="20%"><a herf="<%=rs ("type") %>.asp"><

  6. 在IE显示的网页上,当用户单击【搜索】按钮后,将会以(1)方式将用户输入的查询数据提交给服务器,并且触发(2)程序的执行,从而完成用户对手机类型的搜索请求。  

    (1) A.get  B.post  C.pull  

    (2) A.main.asp  B.main_search.asp  C.index.asp

  7. 若网络用户的物理位置需要经常移动,应采用什么方式划分VLAN?

  8. 若交换机SW1和SW2没有千兆端口,在图5-12中能否实现VLAN Trunk的功能?若能,如何实现?若不能,请说明理由。

  9. 阅读以下的配置信息,解释(7)处空缺处的命令,将答案填写在答题纸上相应的位置。

     SW1#config t

     SW1(config) #interface fO/5  (进入端口5配置模式)

     SW1(config-if)# switchport mode access  ( (7) )

     SW1(config-if)# switchport access vlan2  (把端口5分配给相信的vlan2)

     SW1(config-if)# exit

  10. 阅读以下配置信息,解释(5)、(6)空缺处的命令的功能。

     SW1# configt

     SW1(config)# interface f0/1  (进入接口1配置模式)

     SW1(config-if)#switchport mode trunk  ((5))

     SW1(config-if)#switchpont runk allowed vlan all(设置允许从该接口交换数据的vlan)

     SW1(config-if)# end

     SW1# vlan d

     SW1(vlan)# vlan 2  (创建一个vlan 2)

     VLAN 2 added

     Name:VLAN0002  (系统自动命名)

     SW1(vlan)# vlan 3 name vlan3  ((6))

     VLAN 3 added:

     Name:vlan3

     SW1(vlan)#exit