HTML Level II (CyberAdvantage)

Slides:



Advertisements
Similar presentations
CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
Advertisements

CSS Internet Engineering Spring 2014 Bahador Bakhshi CE & IT Department, Amirkabir University of Technology.
Slide 1 CMPS 211 Internet Programming Spring 2008 Dynamic Effects with Styles Chapter 12 2/6/08.
Very quick intro HTML and CSS. Sample html A Web Title.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Tutorial 6 Creating Fixed-Width Layouts
ITI 133: HTML5 Desktop and Mobile Level I
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
CS 174: Web Programming April 9 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
PhpXperts What is jQuery Javascript Library Fast and concise Simplifies the interaction between HTML and JavaScript.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Nguyen Ich Cuong.  Course duration: 45’  Purpose: Present Introduction to JQuery  Targeted attendees: NICorp Trainee  Tests/quiz: Yes - 10’
JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Session I Chapter 1 - Introduction to Web Development
Positioning Objects with CSS and Tables
CS 174: Web Programming October 28 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML.
WELCOME TO WEB PAGE DESIGN- BEGINNERS COURSE Mrs Barry.
HTML5 Level II Session IV
CSS Layouts: Grouping Elements
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
JQuery UI.
User Interface Design and Usability jQuery, jQuery UI & jQuery Plugins
CMPE 280 Web UI Design and Development March 1 Class Meeting
HTML5 Level II Session II
ITI 133 HTML5 Desktop and Mobile Level I
HTML5 Level III Responsive Web Design (RWD) and Front-End Frameworks
Session I Chapter 10 - How to Work with Tables
ITI 133 HTML5 Desktop and Mobile Level I
HTML5 Level I Session III
Course Review HTML5 Level II Course Review
IBM Kenexa BrassRing on Cloud Responsive Apply: Visual Branding Tool
HTML5 Level II Session III
Course Review HTML5 Level II Course Review
HTML5 Level I Session II Chapter 3 - How to Use HTML to Structure a Web Page
HTML5 Session III Chapter 5 - How to Use the CSS Box Model for Spacing, Borders, and Backgrounds Chapter 6 - How to use CSS for page.
JQuery UI Plug-ins, Object Models & the Window Object
MORE Cascading Style Sheets (The Positioning Model)
HTML5 Level I Session III
HTML5 Level I Session III
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Chapter 11 - How to use jQuery plugins and jQuery UI Widgets
Course Review ITI HTML5 Level II Course Review
Session VI Chapter 8 - How to Use Responsive Web Design (RWD)
HTML Level II (CyberAdvantage)
Chapter 8 - How to Use Responsive Web Design (RWD)
Web Development & Design Foundations with H T M L 5
Master a Skill / Learn for Life
Responsive Web Design (RWD)
ITI 239 HTML5 Desktop and Mobile Level I
HTML5 Level I CyberAdvantage
Course Review HTML5 Level II Course Review
Course Review HTML5 Level II Course Review
HTML5 Course Review Master a Skill / Learn for Life.
HTML5 Level III Responsive Web Design (RWD) and Front-End Frameworks
CMPE 280 Web UI Design and Development February 28 Class Meeting
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
ITI 134: HTML5 Desktop and Mobile Level II
Master a Skill / Learn for Life
HTML5 Level I CyberAdvantage
Session IV Chapter 15 - How Work with Fonts and Printing
ITI 133: HTML5 Desktop and Mobile Level I
Course Review HTML5 Level I Course Review
CSS3 Session III Chapter 16 - How to Use CSS3 Transitions, Transforms, Animation and Filters Master a Skill / Learn.
Presentation transcript:

HTML Level II (CyberAdvantage) Session II Chapter 16 - How to Use jQuery UI and jQuery Plugins to Enhance Your Web Pages www.profburnett.com

Class Outline Introduction to jQuery UI How to Use jQuery Widgets – Accordion, Tabs How to Use JQuery Plugins – Images, Carousels, Cycles 12/3/2018 Copyright © Carl M. Burnett

How to Use jQuery UI Features jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. http://jqueryui.com/ jQuery UI Accordion jQuery UI Tabs jQuery UI Images API’s jQuery UI Carousels 12/3/2018 Copyright © Carl M. Burnett

jQuery UI for Accordion The script element for the accordion <script> $(function() { $("#accordion").accordion(); }); </script> The HTML for the accordion <div id="accordion"> <h3><a href="#">Book description</a></h3> <div> <!-- panel contents --> </div> <h3><a href="#">About the author</a></h3> <h3><a href="#">Who this book is for</a></h3> </div> Example 12/3/2018 Copyright © Carl M. Burnett

jQuery UI for Auto-Completion The script element for auto-completion The HTML for the text box <script> $(function() { var murachBooks = ["ASP", "ASP.NET", "C#", "C++", "CICS", "CSS", "COBOL", "DB2", "HTML", "IMS", "Java", "JavaScript", "LINQ", "OS/390", "PHP", "VB", "VB.NET", "Visual Basic", "Web Development", "Web Programming", "XHTML", "z/OS JCL"]; $("#books").autocomplete({ source: murachBooks }); </script> <h1>Search our Book Database</h1><br> <div class="ui-widget"> <label for="books">Book: </label> <input id="books"> </div> Example 12/3/2018 Copyright © Carl M. Burnett

jQuery UI for a Dialog Box The script element for the dialog box <script> $(function() { $("#book").click(function(event){ $("#dialog").dialog({width:300}); }); </script> The HTML for the dialog box <h1>Featured Book</h1> <img src="images/javascriptbook.jpg" id="book" width="159" height="192"> <div id="dialog" title="JavaScript and DOM Scripting" style="display:none;"> <img src="images/javascriptbook_300.jpg" width="250" height="313"> </div> Example 12/3/2018 Copyright © Carl M. Burnett

jQuery UI for a Sortable List The script element for the sortable list The CSS for the sortable list <script> $(function() { $("#sortable").sortable(); $("#sortable").disableSelection(); }); </script> /* the styles for the sortable list */ #sortable { list-style-type: none; margin: 0; padding: 0; width: 80%; } #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; height: 18px; #sortable li span { position: absolute; margin-left: -1.3em; The HTML for the sortable list <ul id="sortable"> <li class="ui-state-default"> <span class="ui-icon ui-icon-arrowthick-2-n-s"> </span>JavaScript and DOM Scripting</li> </span>Visual Basic 2010</li> <!-- Add as many list items as you want --> </ul> Example 12/3/2018 Copyright © Carl M. Burnett

How to Use jQuery Carousels and Slideshows jQuery Carousel Plugins PixelzDesign Tiny Carousel jQuery Slideshows Plugins Web Designer Depot JSSOR Wow Slider Smashing Apps 12/3/2018 Copyright © Carl M. Burnett

jQuery for Carousels The script element for the carousel 12/3/2018 $(function() { var $slider = $('.panel-inner'); var liW = 101; var liFW = parseInt(liW * ($slider.find('li').length + 1)); $slider.css('width', liFW + 'px'); $('.button').click(function() { var leftX = (this.id == 'right') ? parseInt($slider.css('left').toString().replace( '-', '')) : parseInt($slider.css('left')); var leftY = (this.id == 'right') ? ( (leftX + 404) == liFW) ? 0: - (leftX + liW) : (leftX < 0) ? – (parseInt(leftX.toString().replace( '-', '')) - liW) : 0; rotate(leftY); }); var rotate = function(leftY) {$slider.animate({ left: leftY},500);} </script> 12/3/2018 Copyright © Carl M. Burnett

jQuery for Carousels The HTML for the carousel <div id="carousel"> <div class="button" id="left"> <img src="images/left.jpg"> </div> <div class="panel"> <ul class="panel-inner"> <li><img src="images/book1.jpg" alt="SQL Server 2008"></li> <li><img src="images/book2.jpg" alt="PHP and MySQL"></li> <!-- add as many images as you want --> </ul> <div class="button" id="right"> <img src="images/right.jpg"> 12/3/2018 Copyright © Carl M. Burnett

jQuery for Carousels Example /* the styles for the carousel */ margin: 10px 0 0 0; padding: 0; width: 400px; height: 125px; } .button { margin: 45px 10px 0 10px; float: left; height: 25px; width: 25px; } .panel { margin: 0; overflow: hidden; position: relative; width: 300px; .panel-inner { position: absolute; left: 0; height: 125px; list-style: none; margin: 0; padding: 0; } .panel-inner li { text-align: center; padding: 0; margin: 1px 1px 0 0; float: left; width: 100px; background: #FFF; } .panel-inner li img { margin: 1px 0 0 1px; } Example 12/3/2018 Copyright © Carl M. Burnett

jQuery for Slideshows The script element for the slide show The CSS for the slide show <script> $(function(){ $('.fadein img:gt(0)').hide(); setInterval(function(){ $('.fadein :first-child').fadeOut(1000) .next('img').fadeIn(1000) .end().appendTo('.fadein');}, 5000); }); </script> .fadein { position: relative; width: 200px; height: 250px; } .fadein img { position: absolute; } The HTML for the slide show <div class="fadein"> <img src="images/book1.jpg" alt="SQL Server 2008 for Developers"> <img src="images/book2.jpg" alt="PHP and MySQL"> <img src="images/book3.jpg" alt="Visual Basic 2010"> </div> Example 12/3/2018 Copyright © Carl M. Burnett

jQuery Plugins from malsup http://jquery.malsup.com/ BlockUI Plugin Corner Plugin Cycle Plugin Cycle2! Feed Plugin Form Plugin HoverPulse Plugin Media Plugin Taconite Plugin

Student Exercise 2 Complete Exercise 16-1 and 16-2 on page 555 using Dreamweaver. Upload your HTML pages and CSS files to the live site to preview. 12/3/2018 Copyright © Carl M. Burnett

Class Review JavaScript Frameworks Intro to jQuery How to Use jQuery Carousels How to Use jQuery UI Features Next – Session 3 HTML5 APIs & Introduction to Web Application Vulnerability Testing 12/3/2018 Copyright © Carl M. Burnett