2_Computer science grade 10Using Scripts_presentation2_2 variant
Оценка 5

2_Computer science grade 10Using Scripts_presentation2_2 variant

Оценка 5
ppt
09.05.2020
2_Computer science grade 10Using Scripts_presentation2_2 variant
2_Computer science grade 10Using Scripts_presentation2_2 variant.ppt

Using Scripts 10.4.2.3 use ready-made scripts in web-development 1

Using Scripts 10.4.2.3 use ready-made scripts in web-development 1

Using Scripts

10.4.2.3 use ready-made scripts in web-development

1

Why Use JavaScript? JavaScript enhances

Why Use JavaScript? JavaScript enhances

Why Use JavaScript?

JavaScript enhances Web pages with dynamic and interactive features.
JavaScript runs in client software.
JavaScript 1.3 works with version 4.0 browsers.

JavaScript Syntax. Unlike HTML,

JavaScript Syntax. Unlike HTML,

JavaScript Syntax.

Unlike HTML, JavaScript is case sensitive.
Dot Syntax is used to combine terms. e.g., document.write("Hello World")
Certain characters and terms are reserved.
JavaScript is simple text (ASCII).

Methods of Using JavaScript. 1

Methods of Using JavaScript. 1

Methods of Using JavaScript.

1. JavaScripts can reside in a separate page.
2. JavaScript can be embedded in HTML documents -- in the , in the <, or in both.
3. JavaScript object attributes can be placed in HTML element tags. e.g.,

Using Separate JavaScript Files

Using Separate JavaScript Files

1. Using Separate JavaScript Files.

Linking can be advantageous if many pages use the same script.
Use the source element to link to the script file.

Embedding JavaScript in HTML. When specifying a script only the tags </strong> and <strong> are essential, but complete specification is recommended: <br> <!--

Embedding JavaScript in HTML. When specifying a script only the tags </strong> and <strong> are essential, but complete specification is recommended: <br> <!--

2. Embedding JavaScript in HTML.

When specifying a script only the tags are essential, but complete specification is recommended:

Using JavaScript in HTML Tags.

Using JavaScript in HTML Tags.

3. Using JavaScript in HTML Tags.

Event handlers like onMouseover are a perfect example of an easy to add tag script.

onMouseover="document.logo.src='js2.gif'"
onMouseout="document.logo.src='js.gif'">

Practical work (continue from1 lesson)

Practical work (continue from1 lesson)

Practical work (continue from1 lesson). Finishing

1. Break into microgroups of 3 people each, according to the profession (by color cards)
Red Programmer.
Yellow Web Designer.
Blue Architect.
2. Each group will perform certain tasks and transfer the completed to the next. Distribute tasks in your microgroup
3. After completing all the assignments, the groups report on the work done, discuss the results of the work.

Скачать файл