Java Script Java Script Java Script html head
![网页制作 Java. Script 网页制作 Java. Script](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-1.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-2.jpg)
![Java. Script • Java. Script程序的编写 –<html> –<head> – <title>New Page 1</title> –</head> –<body> – Java. Script • Java. Script程序的编写 –<html> –<head> – <title>New Page 1</title> –</head> –<body> –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-3.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-4.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-5.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-6.jpg)
![Java. Script流程控制 • 变量声明,赋值语句 – var computer = 32 • 函数定义语句:function,return。 – function square Java. Script流程控制 • 变量声明,赋值语句 – var computer = 32 • 函数定义语句:function,return。 – function square](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-7.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-8.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-9.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-10.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-11.jpg)
![function sum(Start. Val, End. Val) 例3 -2 { var Arg. Num = sum. arguments. function sum(Start. Val, End. Val) 例3 -2 { var Arg. Num = sum. arguments.](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-12.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-13.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-14.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-15.jpg)
![Java. Script • 事件的应用 <html><head><title>DHTML简例</title></head> <body> <span id=s 1 on. Mouse. Move="s 1. style. Java. Script • 事件的应用 <html><head><title>DHTML简例</title></head> <body> <span id=s 1 on. Mouse. Move="s 1. style.](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-16.jpg)
![Java. Script • 事件的应用 –<script language="Java. Script"> – function a(img){ – i=new Image(); – Java. Script • 事件的应用 –<script language="Java. Script"> – function a(img){ – i=new Image(); –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-17.jpg)
![Java. Script • 控件对象 – 控件的name属性 – 当前页面document • 数组 – <script language="Java. Script"> Java. Script • 控件对象 – 控件的name属性 – 当前页面document • 数组 – <script language="Java. Script">](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-18.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-19.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-20.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-21.jpg)
![Java. Script的浏览器对象 • • • Navigator对象 Frame对象 Window对象 Location对象 History对象 Document对象 Form对象 Anchor对象 Button,Password,Checkbox等对象 Java. Script的浏览器对象 • • • Navigator对象 Frame对象 Window对象 Location对象 History对象 Document对象 Form对象 Anchor对象 Button,Password,Checkbox等对象](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-22.jpg)
![例4 -10 Navigator对象 <html> <head><title>Navigator对象</title></head> <body> <center><font face="隶书" color=red size=6>欢迎您来访</font></center> <script language="Java. Script"> if 例4 -10 Navigator对象 <html> <head><title>Navigator对象</title></head> <body> <center><font face="隶书" color=red size=6>欢迎您来访</font></center> <script language="Java. Script"> if](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-23.jpg)
![Window对象 • • • self parent,top status alert()、confirm()、prompt() open(),close() set. Timeout() Window对象 • • • self parent,top status alert()、confirm()、prompt() open(),close() set. Timeout()](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-24.jpg)
![例4 -11 <html> <head><title>window对象示例</title> <script> function conf. Submit(){ if ((ok=confirm("您确定输入正确吗?"))==true){ var nw=open("a. htm", "nwin", 例4 -11 <html> <head><title>window对象示例</title> <script> function conf. Submit(){ if ((ok=confirm("您确定输入正确吗?"))==true){ var nw=open("a. htm", "nwin",](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-25.jpg)
![例4 -11 <body> <script> default. Status="这是一个window对象使用示例。"; </script> <center><h 1>window对象使用示例一</h 1></center><hr> <form name="input_form"><h 2> 请输入您的姓名:<input 例4 -11 <body> <script> default. Status="这是一个window对象使用示例。"; </script> <center><h 1>window对象使用示例一</h 1></center><hr> <form name="input_form"><h 2> 请输入您的姓名:<input](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-26.jpg)
![Document对象 <html> <head><title>通过Document对象设置页面属性</title></head> <body><script> document. bg. Color="#DDEEFF"; document. fg. Color="darkred"; document. link. Color="#0088 FF"; Document对象 <html> <head><title>通过Document对象设置页面属性</title></head> <body><script> document. bg. Color="#DDEEFF"; document. fg. Color="darkred"; document. link. Color="#0088 FF";](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-27.jpg)
![例4 -17 弹出新窗口 <html><head><script language="Java. Script"> function create. Win(){ New. Win=window. open("", "width=200, height=200"); 例4 -17 弹出新窗口 <html><head><script language="Java. Script"> function create. Win(){ New. Win=window. open("", "width=200, height=200");](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-28.jpg)
![Form对象 例4 -18 <html><body> <form name="f 1"> <input type="text" name="t 1" value="文本 1"> <input Form对象 例4 -18 <html><body> <form name="f 1"> <input type="text" name="t 1" value="文本 1"> <input](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-29.jpg)
![Form对象 例4 -19 <html><head><script language="Java. Script"> function Verify(){ var Tel=document. Tel. Form. Tel. No. Form对象 例4 -19 <html><head><script language="Java. Script"> function Verify(){ var Tel=document. Tel. Form. Tel. No.](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-30.jpg)
![Form对象 例4 -19 <body>请输入您的电话号码: <form name="Tel. Form" on. Submit="Verify()"> <input type="text" name="Tel. No" value=""> Form对象 例4 -19 <body>请输入您的电话号码: <form name="Tel. Form" on. Submit="Verify()"> <input type="text" name="Tel. No" value="">](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-31.jpg)
![Form中的控件 • • textarea password hidden checkbox radio select 例4 -20 读取控件的信息 Form中的控件 • • textarea password hidden checkbox radio select 例4 -20 读取控件的信息](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-32.jpg)
![History对象和Location对象 <html><head><title>History对象示例</title></head> <body><center><h 2>History对象使用示例</h 2></center><hr> <form><input type=button value="往前翻 " on. Click="history. go(-1)"> <input type=button History对象和Location对象 <html><head><title>History对象示例</title></head> <body><center><h 2>History对象使用示例</h 2></center><hr> <form><input type=button value="往前翻 " on. Click="history. go(-1)"> <input type=button](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-33.jpg)
![Frame对象 • • • name parent self top frames 例4 -22 框架之间的通信 Frame对象 • • • name parent self top frames 例4 -22 框架之间的通信](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-34.jpg)
![网页制作 VBScript 网页制作 VBScript](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-35.jpg)
![VBScript • VBScript程序的编写 – <html> – <body> – <script language="vbscript"> – document. write("你好,今天天气真好! ") VBScript • VBScript程序的编写 – <html> – <body> – <script language="vbscript"> – document. write("你好,今天天气真好! ")](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-36.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-37.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-38.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-39.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-40.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-41.jpg)
![常用函数 • 数字运算函数 – Abs – Int – CInt – Sqr • 字符串函数 – 常用函数 • 数字运算函数 – Abs – Int – CInt – Sqr • 字符串函数 –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-42.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-43.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-44.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-45.jpg)
![循环语句 • 使用 Do 循环 – 当条件为 True >时重复执行语句 Do While my. Num 10 循环语句 • 使用 Do 循环 – 当条件为 True >时重复执行语句 Do While my. Num 10](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-46.jpg)
![循环语句 • 使用 Do 循环 – 重复执行语句直到条件变为 True Do Until my. Num = 10 循环语句 • 使用 Do 循环 – 重复执行语句直到条件变为 True Do Until my. Num = 10](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-47.jpg)
![循环语句 • While. . . Wend 语句 While my. Num < 10 my. Num 循环语句 • While. . . Wend 语句 While my. Num < 10 my. Num](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-48.jpg)
![循环语句 • For. . . Next For x = 1 To 50 My. Proc 循环语句 • For. . . Next For x = 1 To 50 My. Proc](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-49.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-50.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-51.jpg)
![使用VBScript对象 • Document – Write • Window – Alert、Prompt – Close – Open – 使用VBScript对象 • Document – Write • Window – Alert、Prompt – Close – Open –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-52.jpg)
- Slides: 52
![网页制作 Java Script 网页制作 Java. Script](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-1.jpg)
网页制作 Java. Script
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-2.jpg)
![Java Script Java Script程序的编写 html head titleNew Page 1title head body Java. Script • Java. Script程序的编写 –<html> –<head> – <title>New Page 1</title> –</head> –<body> –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-3.jpg)
Java. Script • Java. Script程序的编写 –<html> –<head> – <title>New Page 1</title> –</head> –<body> – <script language="Java. Script"> – alert("hello"); – </script> –</body> –</html>
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-4.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-5.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-6.jpg)
![Java Script流程控制 变量声明赋值语句 var computer 32 函数定义语句functionreturn function square Java. Script流程控制 • 变量声明,赋值语句 – var computer = 32 • 函数定义语句:function,return。 – function square](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-7.jpg)
Java. Script流程控制 • 变量声明,赋值语句 – var computer = 32 • 函数定义语句:function,return。 – function square ( x ) { return x*x }
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-8.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-9.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-10.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-11.jpg)
![function sumStart Val End Val 例3 2 var Arg Num sum arguments function sum(Start. Val, End. Val) 例3 -2 { var Arg. Num = sum. arguments.](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-12.jpg)
function sum(Start. Val, End. Val) 例3 -2 { var Arg. Num = sum. arguments. length; //用户给出的参数个数 var i, s=0; if (Arg. Num == 0 ) { Start. Val = 1; End. Val = 1000; } else if (Arg. Num == 1 ) End. Val = 1000; for (i = Start. Val; i<=End. Val; i++) s+=i; return s; } document. write("不给出参数调用函数sum: ", sum(), " "); document. write("给出一个参数调用函数sum: ", sum(500), " "); document. write("给出二个参数调用函数sum: ", sum(1, 50), " ");
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-13.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-14.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-15.jpg)
![Java Script 事件的应用 htmlheadtitleDHTML简例titlehead body span ids 1 on Mouse Moves 1 style Java. Script • 事件的应用 <html><head><title>DHTML简例</title></head> <body> <span id=s 1 on. Mouse. Move="s 1. style.](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-16.jpg)
Java. Script • 事件的应用 <html><head><title>DHTML简例</title></head> <body> <span id=s 1 on. Mouse. Move="s 1. style. color='red'" on. Mouse. Out = “s 1. style. color=‘black’”>这 是使用了DHTML的一个简例。</span> </body> </html>
![Java Script 事件的应用 script languageJava Script function aimg inew Image Java. Script • 事件的应用 –<script language="Java. Script"> – function a(img){ – i=new Image(); –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-17.jpg)
Java. Script • 事件的应用 –<script language="Java. Script"> – function a(img){ – i=new Image(); – i. src=img; – document. iii. src=i. src; – } –</script> –<p><a href=“index. htm” on. Mouse. Over=a(“images/city. gif”)>城市</a></p> • 例3 -5 • 例3 -6 一个简单的程序
![Java Script 控件对象 控件的name属性 当前页面document 数组 script languageJava Script Java. Script • 控件对象 – 控件的name属性 – 当前页面document • 数组 – <script language="Java. Script">](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-18.jpg)
Java. Script • 控件对象 – 控件的name属性 – 当前页面document • 数组 – <script language="Java. Script"> – var arg=new Array(10) – arg[1]=5 – document. write(arg[1]) – </script>
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-19.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-20.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-21.jpg)
![Java Script的浏览器对象 Navigator对象 Frame对象 Window对象 Location对象 History对象 Document对象 Form对象 Anchor对象 ButtonPasswordCheckbox等对象 Java. Script的浏览器对象 • • • Navigator对象 Frame对象 Window对象 Location对象 History对象 Document对象 Form对象 Anchor对象 Button,Password,Checkbox等对象](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-22.jpg)
Java. Script的浏览器对象 • • • Navigator对象 Frame对象 Window对象 Location对象 History对象 Document对象 Form对象 Anchor对象 Button,Password,Checkbox等对象
![例4 10 Navigator对象 html headtitleNavigator对象titlehead body centerfont face隶书 colorred size6欢迎您来访fontcenter script languageJava Script if 例4 -10 Navigator对象 <html> <head><title>Navigator对象</title></head> <body> <center><font face="隶书" color=red size=6>欢迎您来访</font></center> <script language="Java. Script"> if](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-23.jpg)
例4 -10 Navigator对象 <html> <head><title>Navigator对象</title></head> <body> <center><font face="隶书" color=red size=6>欢迎您来访</font></center> <script language="Java. Script"> if (navigator. app. Name=="Netscape") document. write ('<hr width=100%>'); else { document. write('<font face="隶书" color=darkgreen size=4>'); document. write('<marquee border="0">您好!欢迎您来到我的主页 </marquee></font>'); } document. write(" <font size=4 color=blue>您使用的浏览器是: "); document. write(navigator. user. Agent); document. write(navigator. app. Name); document. write("</font>"); </script> </body> </html>
![Window对象 self parenttop status alertconfirmprompt openclose set Timeout Window对象 • • • self parent,top status alert()、confirm()、prompt() open(),close() set. Timeout()](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-24.jpg)
Window对象 • • • self parent,top status alert()、confirm()、prompt() open(),close() set. Timeout()
![例4 11 html headtitlewindow对象示例title script function conf Submit if okconfirm您确定输入正确吗true var nwopena htm nwin 例4 -11 <html> <head><title>window对象示例</title> <script> function conf. Submit(){ if ((ok=confirm("您确定输入正确吗?"))==true){ var nw=open("a. htm", "nwin",](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-25.jpg)
例4 -11 <html> <head><title>window对象示例</title> <script> function conf. Submit(){ if ((ok=confirm("您确定输入正确吗?"))==true){ var nw=open("a. htm", "nwin", "width=500, height=200, toolbar=1"); nw. focus(); nw. document. write("您的名字是: "+parent. document. input_form. nm. value); nw. document. write(" "); nw. document. write("您的电话号码是: " + parent. document. input_form. phone. value); } else alert("请您重新输入!"); } </script></head>
![例4 11 body script default Status这是一个window对象使用示例 script centerh 1window对象使用示例一h 1centerhr form nameinputformh 2 请输入您的姓名input 例4 -11 <body> <script> default. Status="这是一个window对象使用示例。"; </script> <center><h 1>window对象使用示例一</h 1></center><hr> <form name="input_form"><h 2> 请输入您的姓名:<input](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-26.jpg)
例4 -11 <body> <script> default. Status="这是一个window对象使用示例。"; </script> <center><h 1>window对象使用示例一</h 1></center><hr> <form name="input_form"><h 2> 请输入您的姓名:<input type=text name="nm" size=12 value=" "> 请输入您的电话号码:<input type=text name="phone" size=12> <input type=submit value="确定" on. Click="conf. Submit()"></h 2> </form> </body> </html>
![Document对象 html headtitle通过Document对象设置页面属性titlehead bodyscript document bg ColorDDEEFF document fg Colordarkred document link Color0088 FF Document对象 <html> <head><title>通过Document对象设置页面属性</title></head> <body><script> document. bg. Color="#DDEEFF"; document. fg. Color="darkred"; document. link. Color="#0088 FF";](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-27.jpg)
Document对象 <html> <head><title>通过Document对象设置页面属性</title></head> <body><script> document. bg. Color="#DDEEFF"; document. fg. Color="darkred"; document. link. Color="#0088 FF"; document. alink. Color="#0088 FF"; document. vlink. Color="#0088 FF"; document. write("<h 1>通过Document对象设置页面属性示例</h 1>"); document. write("<hr>"); document. write("<a href='a. htm'>去页面A</a>"); document. write(" 本HTML文件名是:"+document. URL); document. write(" 本HTML文件最后被修改的时间是: "+document. last. Modified); </script> </body> </html>
![例4 17 弹出新窗口 htmlheadscript languageJava Script function create Win New Winwindow open width200 height200 例4 -17 弹出新窗口 <html><head><script language="Java. Script"> function create. Win(){ New. Win=window. open("", "width=200, height=200");](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-28.jpg)
例4 -17 弹出新窗口 <html><head><script language="Java. Script"> function create. Win(){ New. Win=window. open("", "width=200, height=200"); New. Win. document. open("text/html"); New. Win. document. write("这是新创建的窗口!"); New. Win. document. close(); } </script></head> <body>按下按钮可弹出一个窗口 <form><input type="button" value="弹出新窗口" on. Click="create. Win()"></form> </body></html>
![Form对象 例4 18 htmlbody form namef 1 input typetext namet 1 value文本 1 input Form对象 例4 -18 <html><body> <form name="f 1"> <input type="text" name="t 1" value="文本 1"> <input](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-29.jpg)
Form对象 例4 -18 <html><body> <form name="f 1"> <input type="text" name="t 1" value="文本 1"> <input type="button" value="按钮 1"></form> <form name="f 2"><input type="text" name="t 2" value="文本 2"></form> <script language="Java. Script"> document. write("本网页共有: "+document. forms. length+"个表单。它们是: "); for (var i=0; i<document. forms. length; i++){ document. write("表单名:"+document. forms[i]. name+" ; "); document. write("action值:"+document. forms[i]. action+" ; "); document. write("method值:"+document. forms[i]. method+" "); document. write("该表单共有:"+document. forms[i]. length+"个元素。 "); } </script></body></html>
![Form对象 例4 19 htmlheadscript languageJava Script function Verify var Teldocument Tel Form Tel No Form对象 例4 -19 <html><head><script language="Java. Script"> function Verify(){ var Tel=document. Tel. Form. Tel. No.](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-30.jpg)
Form对象 例4 -19 <html><head><script language="Java. Script"> function Verify(){ var Tel=document. Tel. Form. Tel. No. value; if ((Tel. length==8) || (Tel. length==7)){ if (parse. Int(Tel)!=0){ New. Win=window. open("", "width=200, height=200"); New. Win. document. open("text/html"); New. Win. document. write("<H 3>号码已经成功提交!</H 3>"); New. Win. document. close(); } else{ alert("号码输入不正确!"); return false; } }</script></head>
![Form对象 例4 19 body请输入您的电话号码 form nameTel Form on SubmitVerify input typetext nameTel No value Form对象 例4 -19 <body>请输入您的电话号码: <form name="Tel. Form" on. Submit="Verify()"> <input type="text" name="Tel. No" value="">](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-31.jpg)
Form对象 例4 -19 <body>请输入您的电话号码: <form name="Tel. Form" on. Submit="Verify()"> <input type="text" name="Tel. No" value=""> <input type="submit" value="提交号码" width=100> <input type="reset" value="重置号码" width=100></form> </body></html>
![Form中的控件 textarea password hidden checkbox radio select 例4 20 读取控件的信息 Form中的控件 • • textarea password hidden checkbox radio select 例4 -20 读取控件的信息](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-32.jpg)
Form中的控件 • • textarea password hidden checkbox radio select 例4 -20 读取控件的信息
![History对象和Location对象 htmlheadtitleHistory对象示例titlehead bodycenterh 2History对象使用示例h 2centerhr forminput typebutton value往前翻 on Clickhistory go1 input typebutton History对象和Location对象 <html><head><title>History对象示例</title></head> <body><center><h 2>History对象使用示例</h 2></center><hr> <form><input type=button value="往前翻 " on. Click="history. go(-1)"> <input type=button](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-33.jpg)
History对象和Location对象 <html><head><title>History对象示例</title></head> <body><center><h 2>History对象使用示例</h 2></center><hr> <form><input type=button value="往前翻 " on. Click="history. go(-1)"> <input type=button value="重载当前页" on. Click="history. go(0)"> <input type=button value="往后翻 " on. Click="history. go(1)"></form> </body></html> window. location="http: //www. neu. edu. cn"
![Frame对象 name parent self top frames 例4 22 框架之间的通信 Frame对象 • • • name parent self top frames 例4 -22 框架之间的通信](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-34.jpg)
Frame对象 • • • name parent self top frames 例4 -22 框架之间的通信
![网页制作 VBScript 网页制作 VBScript](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-35.jpg)
网页制作 VBScript
![VBScript VBScript程序的编写 html body script languagevbscript document write你好今天天气真好 VBScript • VBScript程序的编写 – <html> – <body> – <script language="vbscript"> – document. write("你好,今天天气真好! ")](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-36.jpg)
VBScript • VBScript程序的编写 – <html> – <body> – <script language="vbscript"> – document. write("你好,今天天气真好! ") – </script> – </body> – </html>
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-37.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-38.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-39.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-40.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-41.jpg)
![常用函数 数字运算函数 Abs Int CInt Sqr 字符串函数 常用函数 • 数字运算函数 – Abs – Int – CInt – Sqr • 字符串函数 –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-42.jpg)
常用函数 • 数字运算函数 – Abs – Int – CInt – Sqr • 字符串函数 – Len – Left、Right、Mid – Ucase、Lcase – Ltrim、Rtrim、Trim
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-43.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-44.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-45.jpg)
![循环语句 使用 Do 循环 当条件为 True 时重复执行语句 Do While my Num 10 循环语句 • 使用 Do 循环 – 当条件为 True >时重复执行语句 Do While my. Num 10](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-46.jpg)
循环语句 • 使用 Do 循环 – 当条件为 True >时重复执行语句 Do While my. Num 10 my. Num = my. Num - 1 counter = counter + 1 Loop Do my. Num = my. Num - 1 counter = counter + 1 Loop While my. Num > 10
![循环语句 使用 Do 循环 重复执行语句直到条件变为 True Do Until my Num 10 循环语句 • 使用 Do 循环 – 重复执行语句直到条件变为 True Do Until my. Num = 10](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-47.jpg)
循环语句 • 使用 Do 循环 – 重复执行语句直到条件变为 True Do Until my. Num = 10 my. Num = my. Num - 1 counter = counter + 1 Loop Do my. Num = my. Num + 1 counter = counter + 1 Loop Until my. Num = 10
![循环语句 While Wend 语句 While my Num 10 my Num 循环语句 • While. . . Wend 语句 While my. Num < 10 my. Num](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-48.jpg)
循环语句 • While. . . Wend 语句 While my. Num < 10 my. Num = my. Num + 1 counter = counter + 1 Wend
![循环语句 For Next For x 1 To 50 My Proc 循环语句 • For. . . Next For x = 1 To 50 My. Proc](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-49.jpg)
循环语句 • For. . . Next For x = 1 To 50 My. Proc Next For j = 2 To 10 Step 2 total = total + j Next
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-50.jpg)
![](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-51.jpg)
![使用VBScript对象 Document Write Window AlertPrompt Close Open 使用VBScript对象 • Document – Write • Window – Alert、Prompt – Close – Open –](https://slidetodoc.com/presentation_image/0fcb73fbce9da4e9dad3034165697e97/image-52.jpg)
使用VBScript对象 • Document – Write • Window – Alert、Prompt – Close – Open – Set. Timeout – Status属性 – Onload、On. Unload事件 – 例3 -9、例3 -11
Doctype html html head
код страницы html
Head body html
Doctype html html head
12.html?title=
Script html head
Inside which html
Head body html
01.html?title=
Index.php?str=
Html body title
Head title
Fungsi hr pada html
Html head body title
пример тега description
Xml head
Php doctype html
Slidetodoc.com
Html head body title
Html head font
Html 구구단 테이블
다운로드 링크 만들기
Script html
$1 bash
What are role scoring and script scoring
/html/body/script[1]
Dividing head formula
The attacking firm goes head-to-head with its competitor.
Html tagi
The head of moving head disk
Neck parts
What is a tonic syllable
Negative suction head
Long head short head bicep
What is tone unit
Moving head disk mechanism
Terasoluna
Html java
Script de java
Data types in javascript
Java script wikipedia
"java script"
"java script"
"java script"
Java script course
Java script
"java script"
Khan academy object oriented programming
Java script examples
Java script email
Slido softuni
"language fundamentals"
"java script"