《网页设计与制作—第四章》:页面设计(免费下载)
- 格式:ppt
- 大小:2.21 MB
- 文档页数:79


“双语”教育2012-2013第2学期《网页设计与制作》年级专业:学号姓名:一、单选题(共45小题,每小题1分,共45分)1、在网站设计中所有的站点结构都可以归结为【 B 】A、两级结构B、三级结构C、四级结构D、多级结构2、在客户端网页脚本语言中最为通用的是【 A 】A、javascriptB、VBC、PerlD、ASP3、所学网布局的方法是【 E 】A、表格B、布局C、层D、DIVE、都是4、在HTML中,标记<font>的Size属性最大取值可以是【 C 】A、5B、6C、7D、85、所学网页页面构成有【 E 】A、顶部(标题)B、底部(注释)C、正文D、导航E、都有6、用户登陆页面不可能用到的是【 B 】A、服务器行为检查新用户B、绑定字段C、用户身份验证D、建立数据库7、成绩录入系统不能用到的【 C 】A、建立数据库B、绑定插入记录集C、检查表单D、重复区域8、非彩色所具有的属性为【 C 】A、色相B、饱和度C、明度D、纯度9、下面说法错误的是【 D 】A、规划目录结构时,应该在每个主目录下都建立独立的images目录B、在制作站点时应突出主题色C、人们通常所说的颜色,其实指的就是色相D、为了使站点目录明确,应该采用中文目录10、目前在Internet上应用最为广泛的服务是【B 】A、FTP服务B、WWW服务C、Telnet服务D、Gopher服务11、Web安全色所能够显示的颜色种类为【C 】A、4种B、16种C、216种D、256种12、为了标识一个HTML文件应该使用的HTML标记是【C 】A、<p> </p>B、<boby> </body>C、<html> </html>D、<table> </table>13、框架结构页面正确的说法是【 D 】A、点击左边导航显示右边B、只能链接图片C、框架页面为新建常规页面D、插入可编辑区域可以生成模板14、显示页面设计时不能用到的是【 D 】A、建立数据库B、设置数据源C、连接数据库D、更新记录集15、对远程服务器上的文件进行维护时,通常采用的手段是【B 】A、POP3B、FTPC、SMTPD、Gopher16、下列Web服务器上的目录权限级别中,最安全的权限级别是【A 】A、读取B、执行C、脚本D、写入17、Internet上使用的最重要的两个协议是【B 】A、TCP和TelnetB、TCP和IPC、TCP和SMTPD、IP和Telnet18、网页的特征是【 A 】A、HTML文档的基本特征——超文本B、标识语言,网页中不能没有标记(Tag)C、网页提供了一些措施以防在网上冲浪的过程中迷失方向D、网页实现了对原文档信息的无限补充或扩展19、与上网无关..的协议是【 C 】A、HTTPB、SMTPC、SOKETD、POP320、设置字体大小的代码是【D 】A、<tt></tt>B、 <cite></cite>C、<em></em>D、<font size=?></font>21、HTML中表示文字粗体的标记除了使用<strong>外,还可以使用【 B 】A、<a>B、<b>C、<c>D、<d>22、body元素用于背景颜色的属性是【 C 】A、alinkB、vlinkC、bgcolorD、background23、 HTML代码<tr></tr>表示【B 】A、创建一个表格B、开始表格中的每一行C、开始一行中的每一个格子D、设置表格头24、HTML代码<hr>表示【 D 】A、添加一个图像B、排列对齐一个图像C、设置围绕一个图像的边框的大小D、加入一条水平线25、Flash中,与位图相比,矢量图形的优点是【 A 】A、变形、缩放不影响图形显示质量B、丰富多彩C、图像所占空间大D、图像质量好26、在Dreamweaver MX 中, 下面关于排版表格属性的说法错误的是【D 】A、可以设置宽度B、可以设置高度C、可以设置表格的背景颜色:D、可以设置单元格之间的距离但是不能设置单元格内部的内容和单元格边框之间的距离27、在Dreamweaver MX 中, 在设置各分框架属性时, 参数Scroll 是用来设置什么属性的【B 】A、是否进行颜色设置B、是否出现滚动条C、是否设置边框宽度D、是否使用默认边框宽度28、在Dreamweaver MX 中下面可以用来做代码编辑器的是【A 】A、记事本B、 PhotoshopC、flashD、以上都不可以29、在Dreamweaver 中, 我们可以为链接设立目标, 表示在新窗口打开网页的是【A 】A、_blankB、 _parentC、_selfD、_top30、 Dreamweaver的文本菜单中,Style→Underline表示【D】A、从字体列表中添加或删除字体B、将选定文本变为粗体C、将选定文本变为斜体D、在选定文本上加下划线31、在网页制作中,为了统计访问者的信息,了解他们的意见,我们可以用下述办法实现。
【例4-1】网页中文字上下滚动循环显示。
<html><head><title>文字上下滚动循环显示</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language=JavaScript>var messages=new Array()messages\[0\]="<font color=#8000FF>欢迎使用本书学习</font></a>"messages\[1\]="<font color=#FB2500>这里有织网梦工厂</font></a>"messages\[2\]="<font color=#FF0066F>是网页初学者的最佳选择</font></a>" messages\[3\]="<font color=#000000>这里有…………有精彩的内容等着你</font></a>" var scrollerwidth=320var scrollerheight=100var scrollerbgcolor=′#FFFFFF′if (messages.length>1)i=2elsei=0function move1(whichlayer){tlayer=eval(whichlayer)if (tlayer.top>0&&tlayer.top<=5){tlayer.top=0setTimeout("move1(tlayer)",3000)setTimeout("move2(document.main.document.second)",3000)return}if (tlayer.top>=tlayer.document.height*-1){tlayer.top-=5setTimeout("move1(tlayer)",100)}else{tlayer.top=scrollerheighttlayer.document.write(messages\[i\])tlayer.document.close()if (i==messages.length-1)i=0elsei++}}function move2(whichlayer){tlayer2=eval(whichlayer)if (tlayer2.top>0&&tlayer2.top<=5){tlayer2.top=0setTimeout("move2(tlayer2)",3000)setTimeout("move1(document.main.document.first)",3000)return}if (tlayer2.top>=tlayer2.document.height*-1){tlayer2.top-=5setTimeout("move2(tlayer2)",100)}else{tlayer2.top=scrollerheighttlayer2.document.write(messages\[i\])tlayer2.document.close()if (i==messages.length-1)i=0elsei++}}function move3(whichdiv){tdiv=eval(whichdiv)if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){ tdiv.style.pixelTop=0setTimeout("move3(tdiv)",3000)setTimeout("move4(second2)",3000)return}if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){tdiv.style.pixelTop-=5setTimeout("move3(tdiv)",100)}else{tdiv.style.pixelTop=scrollerheighttdiv.innerHTML=messages\[i\]if (i==messages.length-1)i=0elsei++}}function move4(whichdiv){tdiv2=eval(whichdiv)if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){ tdiv2.style.pixelTop=0setTimeout("move4(tdiv2)",3000)setTimeout("move3(first2)",3000)return}if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){tdiv2.style.pixelTop-=5setTimeout("move4(second2)",100)}else{tdiv2.style.pixelTop=scrollerheighttdiv2.innerHTML=messages\[i\]if (i==messages.length-1)i=0elsei++}}function startscroll(){if (document.all){move3(first2)second2.style.top=scrollerheight}else if (yers){move1(document.main.document.first)document.main.document.second.top=scrollerheight+5document.main.document.second.visibility='show'}}window.onload=startscroll</script><ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight};bgcolor=&{scrollerbgcolor};><layer id="first" left=0 top=1 width=&{scrollerwidth};><script language="JavaScript1.2">if (yers)document.write(messages\[0\])</script></layer><layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide><script language="JavaScript1.2">if (yers)document.write(messages\[1\])</script></layer></ilayer><script language="JavaScript1.2">if (document.all){document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;backgrou nd-color:'+scrollerbgcolor+'">')document.writeln('<divstyle="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0'+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')document.writeln('<divid="first2"style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">') document.write(messages\[0\])document.writeln('</div>')document.writeln('<divid="second2"style="position:absolute;width:'+scrollerwidth+';left:0;top:0" >')document.write(messages\[1\])document.writeln('</div>')document.writeln('</div>')document.writeln('</span>')}</script></head><body bgcolor="#FFFFFF" text="#000000"> </body></html>。