 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 31 - Dynamic HTML: Path, Sequencer and Sprite ActiveX Controls Outline 31.1Introduction 31.2DirectAnimation.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

 2004 Prentice Hall, Inc. All rights reserved. Chapter 28 – Multimedia: Audio, Video, Speech Synthesis and Recognition Outline 28.1 Introduction 28.2.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 30 - Dynamic HTML: Structured Graphics ActiveX Control Outline 30.1Introduction 30.2Shape Primitives.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Chapter 6 Preparing and Publishing Applications. Chapter 6 Lessons 1.Publish movies 2.Reduce file size to optimize a movie 3.Create a preloader 4.Publish.
The Web Warrior Guide to Web Design Technologies
Chapter 6 Photoshop and ImageReady: Part II The Web Warrior Guide to Web Design Technologies.
Adobe Photoshop CS Design Professional FOR THE WEB CREATING IMAGES.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 18 – Macromedia Flash MX 2004: Building an Interactive Game Outline 18.1 Introduction 18.2 Object-Oriented.
Chapter 16 Dynamic HTML and Animation The Web Warrior Guide to Web Design Technologies.
Create slices and hotspots Create links in Web pages Create rollovers from slices Create basic animation Add tweening symbol instances to create animation.
 2008 Pearson Education, Inc. All rights reserved Document Object Model (DOM): Objects and Collections.
Computer Science 103 Chapter 4 Advanced JavaScript.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
JavaScript 101 Lesson 5: Introduction to Events. Lesson Topics Event driven programming Events and event handlers The onClick event handler for hyperlinks.
© 2010 Delmar, Cengage Learning Chapter 6: Preparing and Publishing Movies.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 12 – Microsoft FrontPage Express Outline 12.1Introduction 12.2Microsoft FrontPage Express.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
1 JavaScript: Event Model November 1, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel, and Goldberg.
1 SEG3120 Analysis and Design for User Interfaces Flash Anis Zarrad Parallel Simulations and Distributed Systems (PARADISE) Research Laboratory SITE, University.
Dm 11 – Intro. To Flash Macromedia Flash MX GETTING STARTED WITH.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 20 – Dynamic HTML: Path, Sequencer and Sprite ActiveX Controls Outline 20.1Introduction 20.2DirectAnimation.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 34 - Case Study: Active Server Pages and XML Outline 34.1 Introduction 34.2 Setup and Message.
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
Adobe Flash CS3 Revealed Chapter 1 - GETTING STARTED WITH FLASH.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 14 - Dynamic HTML: Event Model Outline 14.1 Introduction 14.2 Event onclick 14.3 Event onload 14.4.
CHAPTER TEN AUTHORING.
Tutorial 7 Planning and Creating a Flash Web Site.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
Topic 7 Temporal Control. 2Chapter 25 - Temporal ControlOutline Goals and Objectives Goals and Objectives Introduction Introduction Timeline Animation.
DOM Animation Changing the DOM objects over time.
Adobe Photoshop CS3 Revealed – Chapter 16 FOR THE WEB CREATING IMAGES.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
Introduction to Interactive Media Interactive Media Tools: Authoring Applications.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 14 - Dynamic HTML: Event Model Outline 14.1 Introduction 14.2 Event onclick 14.3 Event onload 14.4.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 4 Dynamic HTML & CSS.
1 A Basic Introduction to Flash. Outline What is a flash? Macromedia Flash MX 2004 Flash concepts Flash Demos Conclusion Additional help 2.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 19 – Dynamic HTML: Structured Graphics ActiveX Control Outline 19.1Introduction 19.2Shape.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 17 - Dynamic HTML: Structured Graphics ActiveX Control Outline 17.1 Introduction 17.2 Shape Primitives.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
Understanding JavaScript and Coding Essentials Lesson 8.
Project 7: Exploring DHTML Essentials for Design JavaScript Level Two Michael Brooks.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Adding Interactivity Comp 140 Fall Web 2.0 Major change in internet usage –From mostly static pages Text Graphics Simple links –To new paradigm.
Internet & World Wide Web How to Program, 5/e.  JavaScript events  allow scripts to respond to user interactions and modify the page accordingly  Events.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 18 - Dynamic HTML: Path Sequencer and Sprite ActiveX Controls Outline 18.1 Introduction 18.2.
Chapter 18 - Dynamic HTML: Path Sequencer and Sprite ActiveX Controls
Using DHTML to Enhance Web Pages
Chapter 18 - Dynamic HTML: Path Sequencer and Sprite ActiveX Controls
Chapter Lessons Understand the Macromedia Flash workspace
Section 17.1 Section 17.2 Add an audio file using HTML
Dynamic HTML Path Control
Outline Introduction Audio and Video
Exercise 48 - Skills Adobe Flash CS4 is a software program you use to create animation and applications that range form simple to very complex. Being able.
Tutorial 6 Creating Dynamic Pages
Chapter 17 - Dynamic HTML: Structured Graphics ActiveX Control
DHTML Sequencer Control
Web Design and Development
Presentation transcript:

 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 31 - Dynamic HTML: Path, Sequencer and Sprite ActiveX Controls Outline 31.1Introduction 31.2DirectAnimation Path Control 31.3Multiple Path Control 31.4Time Markers for Path Control 31.5DirectAnimation Sequence Control 31.6DirectAnimation Sprint Control 31.7Animated GIFs 31.8Web Resources

 2004 Prentice Hall, Inc. All rights reserved. 2 Objectives In this chapter, you will learn: –To be able to use the DirectAnimation multimedia ActiveX controls, including the Path, Sequencer and Sprite controls. –To be able to add animation to Web pages with the DirectAnimation ActiveX controls. –To use the Path Control to specify the path along which an animated Web page element moves. –To use the Sequencer Control to control the timing and synchronization of actions on a Web page. –To use the Sprite Control to create animated images for a Web page.

 2004 Prentice Hall, Inc. All rights reserved Introduction Additional DirectAnimation controls –Path Control –Sequencer Control –Sprite Control

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Path Control Path control –More advanced/precise than CSS –Allows objects to travel pre-defined paths for complex animation effects –Must set style of object to be moved to “ position: absolute ”

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags –AutoStart Determines if animation will start on page load Non-zero yes, zero no –Play Start element on its path if AutoStart is false –Repeat How many times to repeat -1 indicates infinite times –Duration Amount of time to traverse path in seconds

 2004 Prentice Hall, Inc. All rights reserved Shape Primitives Commands passed through param tags, cont. –Bounce If non-zero, animation reverses at end of path –Shape Determines path Use PolyLine to create points –Target Shape controlled by path

 2004 Prentice Hall, Inc. All rights reserved. Outline 7 path1.html (1 of 2) Use absolute positioning

 2004 Prentice Hall, Inc. All rights reserved. Outline 8 path1.html (2 of 2) Start on page loadRun animation continuouslyTake two seconds to completeReverse direction when doneAdd two points to pathSet the target to h1 tag

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Path Control Fig Demonstrating the DirectAnimation Path control.

 2004 Prentice Hall, Inc. All rights reserved Multiple Path Controls Possible to move multiple elements at once –Create Path control for each element –Assign each a PolyLine path to follow

 2004 Prentice Hall, Inc. All rights reserved. Outline 11 path2.html (1 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline 12 path2.html (2 of 5) Each element to be moved has its own named span tag

 2004 Prentice Hall, Inc. All rights reserved. Outline 13 path2.html (3 of 5) Assigning a Path to the titleTxt element

 2004 Prentice Hall, Inc. All rights reserved. Outline 14 path2.html (4 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline 15 path2.html (5 of 5)

 2004 Prentice Hall, Inc. All rights reserved Multiple Path Controls Fig Controlling multiple elements with the Path control.

 2004 Prentice Hall, Inc. All rights reserved Time Markers for Path Control AddTimeMarker –Execute action at any point along path –JavaScript event s

 2004 Prentice Hall, Inc. All rights reserved. Outline 18 path3.html (1 of 3) Creating a JavaScript event Change the zIndex of the pole image

 2004 Prentice Hall, Inc. All rights reserved. Outline 19 path3.html (2 of 3) Put large bug on Oval path AddTimeMarker s to fire the mark1 and mark2 events

 2004 Prentice Hall, Inc. All rights reserved. Outline 20 path3.html (3 of 3)

 2004 Prentice Hall, Inc. All rights reserved Time Markers for Path Control Fig Adding time markers for script interaction.

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sequencer Control Call functions at specific time intervals –Simpler interface than JavaScript window.setInterval New objects and parameters –Item Grouping of elements under a common name –at Seconds to wait, action to perform

 2004 Prentice Hall, Inc. All rights reserved. Outline 23 sequencer.html (1 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline 24 sequencer.html (2 of 4) oninit handler to generate sequence of events Using Item and at to group actions

 2004 Prentice Hall, Inc. All rights reserved. Outline 25 sequencer.html (3 of 4) Start targeted element along path

 2004 Prentice Hall, Inc. All rights reserved. Outline 26 sequencer.html (4 of 4) Adding the Sequencer Control

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sequencer Control Fig Using the DirectAnimation Sequencer Control.

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Sprites –Animated images –Allow more control than traditional animated GIFs –Control amount of time between each frame through code

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Fig Source image for Sprite Control ( walking.gif ).

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Sprite control parameters –CSS properties width and height –Repeat -1 to loop indefinitely –NumFrames Total number of frames in animation –NumFramesAcross and NumFramesDown How many rows/columns the image has –SourceURL –AutoStart Non-zero will start with page load

 2004 Prentice Hall, Inc. All rights reserved. Outline 31 sprite.html (1 of 1) Placing a Sprite Control on the page

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Fig Simple animation with the Sprite Control.

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Sprites may be controlled dynamically –Respond to user input –PlayRate Can be negative, plays in reverse –MouseEventsEnabled

 2004 Prentice Hall, Inc. All rights reserved. Outline 34 sprite2.html (1 of 3) The onmouseover event handler Play in reverse, three times faster Must stop animation before adjusting PlayRate

 2004 Prentice Hall, Inc. All rights reserved. Outline 35 sprite2.html (2 of 3) The onmouseout event handler

 2004 Prentice Hall, Inc. All rights reserved. Outline 36 sprite2.html (3 of 3) Enabling mouse events

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Fig Responding to mouse events with the Sprite Control.

 2004 Prentice Hall, Inc. All rights reserved Animated GIFs GIF is a standard format –Sprites compatible only with Internet Explorer –Animated GIFs work in any graphical browser –Made up of frames –May be created in many programs PhotoShop Elements

 2004 Prentice Hall, Inc. All rights reserved Animated GIFs PhotoShop Elements –Saves each frame in a layer –Save For Web feature GIF file type Check Animate box Set Frame Delay, Loop and Transparency

 2004 Prentice Hall, Inc. All rights reserved DirectAnimation Sprite Control Fig Viewing an animated GIF in Photoshop ® Elements. [Adobe product screen shot(s) reprinted with permission from Adobe Systems Incorporated.] Original fileOptimized version File typeForward one frame Go to last frame Browser preview buttonBack one frame Go to first frame