Week 12: JQuery Write less, do more.. JQuery Basics Lightweight JavaScript Library – Emphasizes interaction between JavaScript and HTML – Reduces technical.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Cascading Style Sheets
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Today CSS HTML A project.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
CSS Menus and Rollovers. Agenda foil Separating style from content 3 pages in one file Rollovers in CSS Horizontal drop-downs Vertical drop-downs.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Unit 20 - Client Side Customisation of Web Pages
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Today’s objectives Site performance Padding, Margins, Borders
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
CS3L: Introduction to Symbolic Programming Summer 2008 Gilbert Chou Bonus Lecture: Web Programming.
4.01 Cascading Style Sheets
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
JQuery CS 268. What is jQuery? From their web site:
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
Key question  What are the three standardized core languages used to implement web pages? Write the full name not the abbreviation and describe the “layer”
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
Banners - HTML A banner is a zip-package containing a HTML file, CSS file, and optionally JavaScript file and assets in a asset directory. The banner is.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Jquery Nasrullah. Jquery jQuery is a JavaScript Library. jQuery greatly simplifies JavaScript programming. jQuery is easy to learn.
Animation & Effects Using JQuery. What is jQuery? jQuery is a lightweight, JavaScript library. The purpose of jQuery is to make it much easier to use.
. Taught by: Muhammad Ali Baloch midahot. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between.
CHAPTER 5 jQuery อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Web Design Part I. Click Menu Site to create a new site root.
JavaScript Library. What is jQuery jQuery is a lightweight JavaScript library. The purpose is to make it easier to use JavaScript code on your website.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
CIT 256 CSS Intro & Dreamweaver Built-in Layouts Dr. Beryl Hoffman.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Introduction to JQuery COGS 187A – Fall JQuery jQuery is a JavaScript library, and allows us to manipulate HTML and CSS after the page has been.
Cheryl Wolfe Web Services Administrator Tampa-Hillsborough County Public Library James Day Electronic Services Librarian Embry-Riddle Aeronautical University.
JavaScript and Ajax (JavaScript Dynamic HTML (DHTML)) Week 7 Web site:
LT: I can use CSS to decorate a web page. Do Now: Get your storyboard, and log in to winhome. Write our a list of colors you want in your website. (Minimum.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
JQuery Fundamentals Introduction Tutorial Videos
4.01 Cascading Style Sheets
Using JavaScript to Show an Alert
Tek Raj Chhetri Code for Humans not for machine.
Scrolling Down vs. Multiple Pages
Introduction to Web programming
Cascading Style Sheets
TOPICS Chrome Dev Tools Process for Building a Static Website
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
JQuery with ASP.NET.
E-commerce Applications Development
4.01 Cascading Style Sheets
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

Week 12: JQuery Write less, do more.

JQuery Basics Lightweight JavaScript Library – Emphasizes interaction between JavaScript and HTML – Reduces technical knowledge needed to implement JavaScript – Is free and open source software

How it works … Download the JQuery library file from the Web site Save the file in your Web site directory/folder With the JQuery library linked, you can immediately call on functions

How it works … Jquery exists as a single JavaScript file – Contains all common document, event, effect, and Ajax functions – Can be linked to any Web page

How it works … Jquery exists as a single JavaScript file – Contains all common document, event, effect, and Ajax functions – Can be linked to any Web page

Create a Starting Document Learning JQuery Welcome My JQuery Test Page Jquery is cool!

Initializing JQuery Scripts In JavaScript, you launch code “onload” – After the page has loaded – Isn’t run until after all elements (including images) have loaded With Jquery, you launch code on “Document Ready” $(document).ready(function(){});

Document Ready Function $(document).ready(function(){});

Document Ready Function $(document).ready(function(){ // Your Code Goes Here });

Document Ready Function $(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); });

Adding JQuery … Learning JQuery $(document).ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); }); …

JQuery Syntax $(“selector”).what(“details”); $(“h1”).addClass(“red”); $(“a”).click(function(){ alert(“hello World!”)};

Manipulating CSS … Learning JQuery $(document).ready(function(){ $(”h1").addclass(“red”); }); …

Manipulating CSS … Learning JQuery $(document).ready(function(){ $(”h1").addclass(“red”); });.red {color: red;} …

Where this really helps … … Lorem Ipsom Deolor Sit Amet Lorem Ipsom Deolor Sit Amet …CREATE 10 Rows

Add Some CSS Rules … Learning JQuery th {background-color: blue; color: white;} …

Create rules for highlights … Learning JQuery th {background-color: blue; color: white;} tr.alt td {background-color: #ccc;} tr.over td {background-color: #fcc;} …

Add Script to Make Style Apply … Learning JQuery $(document).ready(function(){ $(”tr").addclass(“alt”); }); th {background-color: blue; color: white;} tr.alt td {background-color: #ccc;} tr.over td {background-color: #fcc;} …

Make the Rows Alternate … Learning JQuery $(document).ready(function(){ $(”tr:even").addclass(“alt”); }); th {background-color: blue; color: white;} tr.alt td {background-color: #ccc;} tr.over td {background-color: #fcc;} …

Add a Highlight $(document).ready(function(){ $(”tr”).mouseover(function() { $(this).addClass(“over”); }); $(”tr”).mouseout(function() { $(this).removeClass(“over”); }); $(”tr:even").addclass(“alt”); }); th {background-color: blue; color: white;} tr.alt td {background-color: #ccc;} tr.over td {background-color: #fcc;}

Create a New Starting Document Learning JQuery Welcome My Second JQuery Test Page

In the Body, Add Some Content Welcome My Second JQuery Test Page Click Here …

In the Head, Add some CSS Learning JQuery span {color: red; cursor: pointer;} div {margin: 3px; width: 80px; height: 80px; display: none; float: left;} #one {background-color: #f00;} #two {background-color: #0f0;} #three {background-color: #00f;}

Add the JQuery Script to Work Learning JQuery span {color: red; cursor: pointer;} div {margin: 3px; width: 80px; height: 80px; display: none; float: left;} #one {background-color: #f00;} #two {background-color: #0f0;} #three {background-color: #00f;}

Add the JQuery Script to Work Learning JQuery $(document).ready(function(){ });...

Add the JQuery Script to Work Learning JQuery $(document).ready(function(){ $(document.body).click(function () { });...

Add the JQuery Script to Work Learning JQuery $(document).ready(function(){ $(document.body).click(function () { $("div:hidden:first").fadeIn("slow"); });...