[工学]第8章Web编程技术.ppt

  1. 1、本文档共43页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[工学]第8章Web编程技术

第8章 Web编程技术 ? 本章学习目标: 1.通过本章的学习,了解JavaScript脚本的编写方法; 2.能使用JavaScript编写简单的脚本; 3.了解什么是ASP、JSP,它们同JavaScript的关系如何; 4.理解ASP的语法; 5.使用Access数据库编制简单的数据库文件; 6.能用FrontPage和记事本编写ASP程序; 7.能用Dreamweaver. UltraDev 4.0和记事本编写JSP程序。 8.1 JavaScript 8.1.1 一个最简单的JavaScript脚本 html head titleJavaScript练习/title /head body /body /html script language=JavaScript alert (Warning!我是JavaScript初学者!); /script 8.1.2 改变背景颜色 script language=JavaScript var MyColor; MyColor=prompt(您最喜欢的颜色是:,); switch(MyColor) { case 红色: document.bgColor=red; break; case 黄色: document.bgColor=yellow; break; case 灰色: document.bgColor=gray; break; default: alert(我不认识这些颜色!); } /script 8.1.3 显示日期和时间 script language=LiveScript today = new Date() document.write(现在时间是: ,today.getHours(),:,today.getMinutes()) document.write(br今天日期为: , today.getMonth()+1,/,today.getDate() ,/,today.getYear()); /script 8.1.4 弹出新窗口。 script language=JavaScript window.open(time.htm, 日期); /script 8.1.5 表单和函数 html head script language=LiveScript function WinOpen() { window.open(time.htm, 日期); } /script /head body form input type=button name=Button1 value=看看时间 onclick=WinOpen() /form /body /html 8.1.6 用JavaScript编制在线练习题目 英语形成性练习题 单向选择题,每题20分,共100分 1、You have to ___ your younger brother since mother is not at home. take care take after look after 2、You have to ___ the registration form in order to use that website. carry on fill in keep up 3、David, please ___ these books ___ to the libarary. take / back take / off take / out 4、If it rains, they will have to ___ the picnic. go through put off set off 5、I like ___ the radio. listening at listening for listening to ? script language=JavaScript function cal(theForm) { var score=0; if (theForm.R1.value ==c) score++; if (theForm.R2.value ==b) score++; if (theForm.R3.value ==a) score++; if (theForm.R4.value ==b) score++; if (theForm.R5.value ==c) score++; alert

文档评论(0)

qiwqpu54 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档