Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1.

Slides:



Advertisements
Similar presentations
Murach’s C# 2010, C6 © 2010, Mike Murach & Associates, Inc.Slide 1.
Advertisements

Murach’s C# 2010, C3 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C3© 2009, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C2© 2009, Mike Murach & Associates, Inc. Slide 1.
Murach’s JavaScript, C1© 2009, Mike Murach & Associates, Inc. Slide 1.
Murach’s C# 2010, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
Slide 1 MIS3023 Professor: Akhilesh Bajaj The University of Tulsa.
© 2013, Mike Murach & Associates, Inc.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach’s C# 2010, C4 © 2010, Mike Murach & Associates, Inc.Slide 1.
Murach's C , C4 © 2009, Mike Murach & Associates, Inc. Slide 1 © 2009, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C5© 2009, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C2© 2009, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C13© 2009, Mike Murach & Associates, Inc.Slide 1.
Murach’s JavaScript, C1© 2009, Mike Murach & Associates, Inc.Slide 1.
Murach's C# 2012, C7© 2013, Mike Murach & Associates, Inc.Slide 1.
The Web Wizard’s Guide To JavaScript Chapter 5 More Image Swapping.
© 2012, Mike Murach & Associates, Inc.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
Chapter 2 Murach's JavaScript and jQuery, C2© 2012, Mike Murach & Associates, Inc.Slide 1.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
Chapter 1 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Chapter 4 Murach's JavaScript and jQuery, C4© 2012, Mike Murach & Associates, Inc.Slide 1.
Chapter 5 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Internet & World Wide Web How to Program, 5/e.  JavaScript events  allow scripts to respond to user interactions and modify the page accordingly  Events.
The Web Wizard’s Guide To JavaScript Chapter 4 Image Swapping.
Murach's ASP.NET 4.5/C#, C3© 2013, Mike Murach & Associates, Inc.Slide 1.
The Web Wizard’s Guide To JavaScript
© 2009, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
© 2016, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
The Web Wizard’s Guide To JavaScript
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
© 2010, Mike Murach & Associates, Inc.
© 2015, Mike Murach & Associates, Inc.
JavaScript and the DOM MIS 2402 Jeremy Shafer Department of MIS
How JavaScript and jQuery are used to enhance web pages
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
© 2010, Mike Murach & Associates, Inc.
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
© 2017, Mike Murach & Associates, Inc.
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
© 2017, Mike Murach & Associates, Inc.
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
Murach's JavaScript and jQuery (3rd Ed.)
JavaScript and the DOM MIS 2402 Maxwell Furman Department of MIS
Presentation transcript:

Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1

Objectives Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 2

Objectives (continued) Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 3

Objectives (continued) Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 4

The code for a web page Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 5

The DOM for the web page Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 6

The DOM nodes that you commonly use Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 7

Some of the properties of the Node interface Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 8

HTML that contains element and text nodes Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 9

How to set the text for the span tag to an empty string without using its id Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 10

Methods of the Document and Element interfaces Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 11

How to create arrays of elements Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 12

How to work with attributes Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 13

Terms Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 14

The FAQs application in a browser Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 15

The HTML for the FAQs application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 16

The HTML for the FAQs application (continued) Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 17

The CSS for the FAQs application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 18

The JavaScript for the FAQs application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 19

The JavaScript (continued) Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 20

The HTML for another version of the FAQs app Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 21

The CSS for another version of the FAQs app Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 22

The JavaScript for attaching the event handlers Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 23

Navigation guidelines for usability Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 24

Guidelines for accessibility Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 25

How the FAQs accessibility can be improved Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 26

The FAQs application with improved accessibility Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 27

The HTML for improved accessibility Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 28

The CSS for improved accessibility Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 29

The JavaScript for improved accessibility Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 30

Common default actions for click events Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 31

JavaScript that cancels the default action\ Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 32

Browser-compatible code that cancels the default action Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 33

How to create and preload an Image object Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 34

The user interface for the Image Swap application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 35

The HTML for the Image Swap application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 36

The CSS for the li elements of the Image Swap Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 37

The JavaScript for the Image Swap application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 38

The JavaScript (continued) Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 39

The FAQs application with a first heading that is hidden after 5 seconds Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 40

Two methods for working with a one-time timer Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 41

How to embed the timer function in the first parameter of the setTimeout method Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 42

The FAQs application with a counter at the bottom Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 43

Two methods for working with an interval timer Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 44

A Slide Show app with the third image displayed Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 45

The HTML for the Slide Show Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 46

The CSS for the ul element of the Slide Show Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 47

The JavaScript for the Slide Show application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 48

The JavaScript (continued) Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 49

Extra 6-1: Modify a Slide Show Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 50

Extra 6-2: Develop an Image Rollover application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 51

Short 6-1: Modify the FAQs application Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc. Slide 52