Unit 2: jQuery
Lesson 7: Effects
October 19, 2013
Lesson 7: Effects
Introduction
to jQuery

Syntax and
Structure

Abstraction

Events

Lesson 1

Lesson 2

Lesson 3

Lesson 4

TBD

Effects

Tying It
Together

Identifying
Events

Lesson 8

Lesson 7

Lesson 6

Lesson 5

TBD

TBD

TBD

TBD

Lesson 9

Lesson 10

Lesson 11

Lesson 12

2
Recap from last time (I)
• There is more than one valid place to put jQuery code:
1. At the bottom of the HTML file
2. In a separate sheet linked to the HTML file
• However, it’s best to store jQuery code in a separate file for the
same reasons why we keep our HTML separate from our CSS

3
Recap from last time (II)
• There is more than one valid place to put jQuery code:
1. At the bottom of the HTML file
2. In a separate sheet linked to the HTML file
• However, it’s best to store jQuery code in a separate file for the
same reasons why we keep our HTML separate from our CSS
Saves time by reusing code
(Don’t Repeat Yourself)

Helps to debug code
(Avoid code bloat)

Keeps us organized
(Separation of concerns)

4
Recap from last time (III)
• x

5
Events and effects go hand-in-hand
• Now that we’ve taken a good look at events, it’s time to gain a
better understanding of effects

jQuery code
$(document).ready(function() {

$(pageElement).someEvent(function() {

$(thingToChange).someEffect();

English translation
When the document is ready, do the
following:
When someEvent happens to pageElement,
do the following:

Make someEffect happen to thingToChange

});
});
6
What is a jQuery effect?
• x

7
jQuery effects
• x

Effect

Event
If user

clicks on a button,

then

turn the text background color red

If user

clicks on a button

then

turn the text background color red

If user

clicks on a button

then

turn the text background color red

8
Effects are where the magic happens!
•

x

9
Examples
•

x

10
Walkthrough
•

x

11
Summary
•

x

12
What to do on your own
1. Go to URL to complete the Codecademy course online

2. Do the practice set on the material learned

1. Take the follow-up quiz to test your understanding

13

More Related Content

PDF
MongoDB and Web Scrapping with the Gyes Platform
DOCX
การพัฒนาเว็บไซต์
DOCX
การพ ฒนาเว บไซต1
DOCX
การพ ฒนาเว บไซต1
PPTX
Colegio nacional dario guevara mayorga
DOCX
N this article first we will create a table in a my sql database and then we ...
PPTX
Intro to mongodb mongouk jun2010
PDF
SqliteToRealm
MongoDB and Web Scrapping with the Gyes Platform
การพัฒนาเว็บไซต์
การพ ฒนาเว บไซต1
การพ ฒนาเว บไซต1
Colegio nacional dario guevara mayorga
N this article first we will create a table in a my sql database and then we ...
Intro to mongodb mongouk jun2010
SqliteToRealm

Similar to Lesson 207 19 oct13-1500-ay (20)

PPTX
Lesson 206 11 oct13-1500-ay
PPTX
Lesson 202 02 oct13-1800-ay
PPTX
Lesson 203 18 sep13-1500-ay
PPT
JS Libraries and jQuery Overview
PPTX
Getting started with jQuery
PPTX
Introduction to jQuery - a basics introduction
PPTX
Take your display template skills to the next level
PPTX
Make Mobile Apps Quickly
PDF
Fewd week4 slides
PPT
J query presentation
PPT
J query presentation
PPTX
Jquery dojo slides
PPTX
Starting with jQuery
PDF
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
PPTX
PPTX
Lesson 201 14 sep13-1500-ay
PDF
Web Development with Delphi and React - ITDevCon 2016
PDF
Javascript libraries
Lesson 206 11 oct13-1500-ay
Lesson 202 02 oct13-1800-ay
Lesson 203 18 sep13-1500-ay
JS Libraries and jQuery Overview
Getting started with jQuery
Introduction to jQuery - a basics introduction
Take your display template skills to the next level
Make Mobile Apps Quickly
Fewd week4 slides
J query presentation
J query presentation
Jquery dojo slides
Starting with jQuery
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lesson 201 14 sep13-1500-ay
Web Development with Delphi and React - ITDevCon 2016
Javascript libraries
Ad

More from Codecademy Ren (19)

PPTX
Lesson 304 05 jan14-1500-ay
PPTX
Lesson 303 05 jan14-1500-ay
PPTX
Lesson 301 26 nov13-1500-ay
PPTX
Lesson 302 05 jan14-1500-ay
PPTX
Lesson 205 07 oct13-1500-ay
PPTX
Lesson 204 03 oct13-1500-ay
PPTX
Lesson 110 24 aug13-1400-ay
PPTX
Lesson 112 24 aug13-2300-ay
PPTX
Lesson 109 23 aug13-1430-ay
PPTX
Lesson 108 23 aug13-1430-ay
PPTX
Lesson 107 23 aug13-1430-ay
PPTX
Lesson 106 23 aug13-1430-ay
PPTX
Lesson 105 23 aug13-1430-ay
PPTX
Lesson 102 23 aug13-1430-ay
PPTX
Lesson 101 23 aug13-1430-ay
PPTX
Lesson 102 25 aug13-2200-ay
PPTX
Lesson 103 23 aug13-1430-ay
PPTX
Lesson 104 23 aug13-1430-ay
PPTX
Lesson 111 24 aug13-1430-ay
Lesson 304 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ay
Lesson 301 26 nov13-1500-ay
Lesson 302 05 jan14-1500-ay
Lesson 205 07 oct13-1500-ay
Lesson 204 03 oct13-1500-ay
Lesson 110 24 aug13-1400-ay
Lesson 112 24 aug13-2300-ay
Lesson 109 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ay
Lesson 107 23 aug13-1430-ay
Lesson 106 23 aug13-1430-ay
Lesson 105 23 aug13-1430-ay
Lesson 102 23 aug13-1430-ay
Lesson 101 23 aug13-1430-ay
Lesson 102 25 aug13-2200-ay
Lesson 103 23 aug13-1430-ay
Lesson 104 23 aug13-1430-ay
Lesson 111 24 aug13-1430-ay
Ad

Recently uploaded (20)

PPTX
Build Your First AI Agent with UiPath.pptx
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
2018-HIPAA-Renewal-Training for executives
PPT
What is a Computer? Input Devices /output devices
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Five Habits of High-Impact Board Members
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Configure Apache Mutual Authentication
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PPTX
The various Industrial Revolutions .pptx
Build Your First AI Agent with UiPath.pptx
Custom Battery Pack Design Considerations for Performance and Safety
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Final SEM Unit 1 for mit wpu at pune .pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
2018-HIPAA-Renewal-Training for executives
What is a Computer? Input Devices /output devices
Comparative analysis of machine learning models for fake news detection in so...
Getting started with AI Agents and Multi-Agent Systems
Flame analysis and combustion estimation using large language and vision assi...
Developing a website for English-speaking practice to English as a foreign la...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
UiPath Agentic Automation session 1: RPA to Agents
Five Habits of High-Impact Board Members
A contest of sentiment analysis: k-nearest neighbor versus neural network
Taming the Chaos: How to Turn Unstructured Data into Decisions
Chapter 5: Probability Theory and Statistics
Configure Apache Mutual Authentication
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
The various Industrial Revolutions .pptx

Lesson 207 19 oct13-1500-ay

  • 1. Unit 2: jQuery Lesson 7: Effects October 19, 2013
  • 2. Lesson 7: Effects Introduction to jQuery Syntax and Structure Abstraction Events Lesson 1 Lesson 2 Lesson 3 Lesson 4 TBD Effects Tying It Together Identifying Events Lesson 8 Lesson 7 Lesson 6 Lesson 5 TBD TBD TBD TBD Lesson 9 Lesson 10 Lesson 11 Lesson 12 2
  • 3. Recap from last time (I) • There is more than one valid place to put jQuery code: 1. At the bottom of the HTML file 2. In a separate sheet linked to the HTML file • However, it’s best to store jQuery code in a separate file for the same reasons why we keep our HTML separate from our CSS 3
  • 4. Recap from last time (II) • There is more than one valid place to put jQuery code: 1. At the bottom of the HTML file 2. In a separate sheet linked to the HTML file • However, it’s best to store jQuery code in a separate file for the same reasons why we keep our HTML separate from our CSS Saves time by reusing code (Don’t Repeat Yourself) Helps to debug code (Avoid code bloat) Keeps us organized (Separation of concerns) 4
  • 5. Recap from last time (III) • x 5
  • 6. Events and effects go hand-in-hand • Now that we’ve taken a good look at events, it’s time to gain a better understanding of effects jQuery code $(document).ready(function() { $(pageElement).someEvent(function() { $(thingToChange).someEffect(); English translation When the document is ready, do the following: When someEvent happens to pageElement, do the following: Make someEffect happen to thingToChange }); }); 6
  • 7. What is a jQuery effect? • x 7
  • 8. jQuery effects • x Effect Event If user clicks on a button, then turn the text background color red If user clicks on a button then turn the text background color red If user clicks on a button then turn the text background color red 8
  • 9. Effects are where the magic happens! • x 9
  • 13. What to do on your own 1. Go to URL to complete the Codecademy course online 2. Do the practice set on the material learned 1. Take the follow-up quiz to test your understanding 13