Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
26 слайдов
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
453.00 kB
Просмотров:
70
Скачиваний:
0
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![IS Development of Business](/documents_6/a374de19dcf90117fd7ad32589ec4518/img0.jpg)
Содержание слайда: IS400: Development of Business Applications on the Internet
Fall 2004
Instructor: Dr. Boris Jukic
JavaScript: Introduction to Scripting
№2 слайд![Topics Covered Writing simple](/documents_6/a374de19dcf90117fd7ad32589ec4518/img1.jpg)
Содержание слайда: Topics Covered
Writing simple JavaScript programs.
Using input and output statements
Basic memory concepts.
Arithmetic operators.
Decision-making statements.
Relational and equality operators.
№3 слайд![Introduction JavaScript](/documents_6/a374de19dcf90117fd7ad32589ec4518/img2.jpg)
Содержание слайда: Introduction
JavaScript scripting language
Client-side scripting enhances functionality and appearance
Makes pages more dynamic and interactive
Pages can produce immediate response without contacting a server
Customization is possible on the basis of users’ explicit and implicit input
Browser has to have a built-in (JavaScript) interpreter
Foundation for complex server-side scripting
№4 слайд![JavaScript Object-Based](/documents_6/a374de19dcf90117fd7ad32589ec4518/img3.jpg)
Содержание слайда: JavaScript: Object-Based Language
There are three object categories in JavaScript: Native Objects, Host Objects, and User-Defined Objects.
Native objects: defined by JavaScript.
String, Number, Array, Image, Date, Math, etc.
Host objects : supplied and always available to JavaScript by the browser environment.
window, document, forms, etc.
User-defined objects : defined by the author/programmer
Initially, we will use host objects created by the browser and their methods and properties
№5 слайд![Scripting Two approaches to](/documents_6/a374de19dcf90117fd7ad32589ec4518/img4.jpg)
Содержание слайда: Scripting
Two approaches to client side scripting:
Inline scripting
Written in the <body> section of a document
JavaScript code embedded in the <head> section
№6 слайд![Scripting lt script gt tag](/documents_6/a374de19dcf90117fd7ad32589ec4518/img5.jpg)
Содержание слайда: Scripting
<script> tag
Indicate that the text is part of a script
type attribute
Specifies the type of file and the scripting language use:
Value: “text/javascript”
IE and Netscape use JavaScript as default scripting language
writeln method of the document object
Write a line in the document and position the cursor in the next line
Does not affect the actual rendering of the HTML document
What is being written by JavaScript is the set of html instructions that in turn determine the rendering of the html document
№7 слайд![welcome.html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img6.jpg)
Содержание слайда: welcome.html
(1 of 1)
№8 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img7.jpg)
Содержание слайда: welcome2.html
(1 of 1)
№9 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img8.jpg)
Содержание слайда: welcome3.html
1 of 1
№10 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img9.jpg)
Содержание слайда: welcome4.html
1 of 1
№11 слайд![](/documents_6/a374de19dcf90117fd7ad32589ec4518/img10.jpg)
№12 слайд![Common Escape Sequences](/documents_6/a374de19dcf90117fd7ad32589ec4518/img11.jpg)
Содержание слайда: Common Escape Sequences
№13 слайд![Dynamic Pages A script can](/documents_6/a374de19dcf90117fd7ad32589ec4518/img12.jpg)
Содержание слайда: Dynamic Pages
A script can adapt the content based on explicit input from the user or other information
System clock: Time of day
Hidden input
Cookies
User input can be collected by invoking the prompt method of a window object
This will display a dialog box that prompts user for input
№14 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img13.jpg)
Содержание слайда: welcome5.html
(1 of 2)
№15 слайд![](/documents_6/a374de19dcf90117fd7ad32589ec4518/img14.jpg)
№16 слайд![](/documents_6/a374de19dcf90117fd7ad32589ec4518/img15.jpg)
№17 слайд![Simple Script Example Adding](/documents_6/a374de19dcf90117fd7ad32589ec4518/img16.jpg)
Содержание слайда: Simple Script Example: Adding Integers
The values of numbers to be added are obtained as user inputs colleted through the window.prompt method
parseInt
Converts its string argument to an integer
What happens if the conversion is not done?
See example on our web site
NaN (not a number): value returned if non-numerical values are passed to the paresInt method
№18 слайд![Addition.html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img17.jpg)
Содержание слайда: Addition.html
(1 of 2)
№19 слайд![Addition.html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img18.jpg)
Содержание слайда: Addition.html
(2 of 2)
№20 слайд![](/documents_6/a374de19dcf90117fd7ad32589ec4518/img19.jpg)
№21 слайд![Arithmetic Operators and](/documents_6/a374de19dcf90117fd7ad32589ec4518/img20.jpg)
Содержание слайда: Arithmetic Operators and order of evaluation
№22 слайд![Relational Inequality and](/documents_6/a374de19dcf90117fd7ad32589ec4518/img21.jpg)
Содержание слайда: Relational (Inequality and Equality) Operators
№23 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img22.jpg)
Содержание слайда: welcome6.html
(1 of 3)
№24 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img23.jpg)
Содержание слайда: welcome6.html
(2 of 3)
№25 слайд![welcome .html of](/documents_6/a374de19dcf90117fd7ad32589ec4518/img24.jpg)
Содержание слайда: welcome6.html
(3 of 3)
№26 слайд![Order of Precedence for the](/documents_6/a374de19dcf90117fd7ad32589ec4518/img25.jpg)
Содержание слайда: Order of Precedence for the Basic Operators