DHTML 1 (cont.) Positioning, Layout, and Movement.

Slides:



Advertisements
Similar presentations
AHEAD HTML Accessibility Topics: Keyboard Accessibility Content and Structure Links Headings and Lists Images in HTML Pages Tables Forms.
Advertisements

Fig. 4-1, p Fig. 4-2, p. 109 Fig. 4-3, p. 110.
……+(4n-3) = n(2n-1) P 1 = 1(2(1)-1)=1 check.
THIS IS PAGE 1 WE DO NOT WANT A PAGE NUMBER ON THIS PAGE, SO WE START ON PAGE 2  GO TO PAGE 2.
Slide 1Fig. 22.1, p.669. Slide 2Fig. 22.3, p.670.
Slide 1Fig. 17.1, p.513. Slide 2Table 17.1, p.514.
P.464. Table 13-1, p.465 Fig. 13-1, p.466 Fig. 13-2, p.467.
Fig. 11-1, p p. 360 Fig. 11-2, p. 361 Fig. 11-3, p. 361.
  Adds “Share” button to any webpage  Add it to a template page so it’ll be on every page  Select.
Table 6-1, p Fig. 6-1, p. 162 p. 163 Fig. 6-2, p. 164.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic DHTML.
Hyperlinks. Working with Linked Images  A standard practice on the Web is to turn the Web site’s logo into a hypertext link pointing to the home page.
Figure 1.1 The observer in the truck sees the ball move in a vertical path when thrown upward. (b) The Earth observer views the path of the ball as a parabola.
Design factors Content –Fig.s 4-49, 5-4, 6-3 Organization –Fig.s 2-10, 2-11, 2-12, 2-14, 2-15, 5-17 Performance Aesthetic Security.
Confirm Your Registration with E-Services Taxware Systems, Inc
Javascript & HTML5 Intro. Why Javascript? Next big thing in online games Flash is slowly on its way out Can be coded via any text editor, flash costs.
DHTML Positioning and Layout. What is DHTML? HTML and xHTML CSS JavaScript or VBScript.
Creating an Animated Web Page
CITS1231 Web Technologies JavaScript and Document Object Model.
XP Tutorial 4 New Perspectives on JavaScript, Comprehensive1 Working with Objects Creating an Animated Web Page.
PowerPoint: Philadelphia Eagles
It is my favorite soccer team It is one of the best soccer teams in the world I want to let more people know this team and love this sport-- soccer.
Dreamweaver Edulaunch Project 1 EQ: What are the key concepts when building the first page of a web site?
Lesson 1-6 Pages Ordered Pairs and Relations.
GREATESTCOMMONFACTOR.
1 HTML Frames
Routine Performed for Each Origin Cell There is another set of loops that cycle through Origin Cells once the D8 Neighbor procedure completes.
TRANSLATIONS. THE BASICS Vocabulary and concepts.
Set 2: DOM IT452 Advanced Web and Internet Systems.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming DHTML Example.
The Web Wizard’s Guide To DHTML and CSS Chapter 6 Understanding Events.
PowerPoint Requirements By: Nicole Caruso, Luceand Cuba, David Garcia,
FOR PRE CALCULUS MTH 163 ARE YOU READY?. ARE YOUR READY The following Power Point will consist of10 math problems that every student should be accustomed.
4.7 Triangles and Coordinate Review of Distance formula and Midpoint formula.
242/102/49 0/51/59 181/172/166 Primary colors 248/152/29 PMS 172 PMS 137 PMS 546 PMS /206/ /227/ /129/123 Secondary colors 114/181/204.
Source Page US:official&tbm=isch&tbnid=Mli6kxZ3HfiCRM:&imgrefurl=
Xenu Link Sleuth Created for the 2010 IAGenWeb Coordinator’s Conference by Ralph Leonard III.
3:00. 2:59 2:58 2:57 2:56 2:55 2:54 2:53 2:52.
 SSR: Holocaust books due  Diary of Anne Frank, p. 485  “Star of David”  Continue reading Scene 3, 497  Swastika  Stopped l
Link. setTimeout() What if you want to automatically cycle through the pics? So you don’t have to keep clicking the button to see the next pic Use the.
Chapter 10 Dynamic HTML (DHTML) JavaScript, Third Edition.
11.3 Solving Radical Equations Definitions & Rules Simplifying Radicals Practice Problems.
Working with Dynamic Page Layout Maureen Smith Professor, Saddleback College CIM 271B - Tutorial 1.
Путешествуй со мной и узнаешь, где я сегодня побывал.
COMP 103 Exam Tips. 2 The Exam (Example) answer all questions manage your time Dumb calculators & non- electronic dictionaries are OK.
On your graph paper, draw the graphs y = 2 x and y = 3 x These are both types of exponential functions Extension: Sketch these graphs and comment on their.
Fig. 6-CO, p p. 185a p. 185b p. 185c p. 185d.
Web Design. How to link the robot How to turn on the robot Sec Getting Started What is python Programming in python How to move the robot How to.
Wavelets and Multiresolution Processing
Graphical Representation of Linear Equations and Functions
Graphing Linear Equations Using Intercepts
Reflections and Graphs
Custom Wiki Pages SharePoint 2010 September 18, 2018.
Top Fire Protection Services Ottawa available on Dubinskyconstruction
Page 1. Page 2 Page 3 Page 4 Page 5 Page 6 Page 7.
Introduction to TouchDevelop
10:00.
DO NOT OPEN YOUR BINDER UNTIL INSTRUCTED
Additional Example 2: Graphing Ordered Pairs Graph and label each point on a coordinate grid. A. L (3, 5) Start at (0, 0)
Fig. 6-CO, p. 211.
07CO, p. 190.
Bell Ringer Unit 7 #1 Read pages
Pitch Back format 4 minutes in total Four items
The Image The pixels in the image The mask The resulting image 255 X
Variations word problems
Problem №2 «All roads lead to Rome»
Printing Interim Reports
Identities.
Problem Solving With Simultaneous Equations
Presentation transcript:

DHTML 1 (cont.) Positioning, Layout, and Movement

Linking to the API Why do this?

Starting Positions Look at page 1.39, Fig What would you see?

placeObjects(); Where is placeIt(); ? Let's look

Move it! Need starting and stopping coordinates Move it so many pixels at a time (175,10) to (175,260) Check out code on page 1.42 Let's look

Moving Avalon function moveAvalon() { var y = ycoord("avalon"); if (y <= 260) { shiftIt("avalon", 0, 10); shiftIt("books", 0, 10); moveAvalon(); } else { // run moveBooks function; }

Time-Delays Need to make it less than instantaneous to the eye Since JavaScript has no "pause" command MAdelay = setTimeout("moveAvalon()", 5); If you need to cancel a delay (so you can perhaps start it again) clearTimeout(MAdelay); clearTimeout();

Setting Intervals Perhaps you want to run a script that executes at specified intervals checking the seconds on a page…. setInterval("command", interval) In milliseconds clearInterval(); With both set and clear you can use id_variables as well

Monitor Resolution Look at fig 1-32, page 1.50 Think of a predefined palette rather than the browser window as a whole Netscape window.outerWidth window.outerHeight IE document.body.clientWidth document.body.clientHeight Don't try to evaluate the results within the Header Code on 1.52

Arrays for Non-Linear Can use arrays for non-linear path animation Page 1.55

DHTML 2 Dynamic Content and Styles

Netscape and Layering For all dynamic content after load, you must rely on and Not as flexible as IE in this aspect Netscape has promised to conform to HTML 4.0 and move away from layering Nice manual on layering at ommunicator/dynhtml/contents.htm

Layering is Important If you are going to use dynamic content on a page, you need to use layers for Netscape Perhaps not in the future For class: We will skip application of it in trade-off for time Still need to understand the concepts in textbook

Inner and Outer Properties IE allows you to modify almost any tag Inner Content between opening and closing tags Outer Content *and* the tags themselves (including tag properties)

Example object.innerText = "text"; Digital Equipment Intro.innerText = "Quality Digital Equipment and Accessories"; Quality Digital Equipment and Accessories Intro.innerText = " Quality Digital Equipment and Accessories "; <b>Quality Digital Equipment and Accessories</b> Why?

Need to Use Intro.innerHTML = " Quality Digital Equipment and Accessories "; Here is my Title Title.outerHTML=" Here is my Title ";

Watch Out! This is my Title Title.outerHTML = " This is my Title "; Title.innerText = "This is a new title";

Insert Content into a Tag object.insertAdjacentText("position", text); object.insertAdjacentHTML("position", text); BeforeBegin AfterBegin BeforeEnd AfterEnd

Example ( ) Pixal Cameras Title.insertAdjacentText("BeforeEnd", "and Accessories"); Pixal Camera and Accessories Title.insertAdjacentHTML("AfterBegin", " Introducing "); Introducing Pixal Camera and Accessories (Book is incorrect, 2.15)

Linking to an HTML File Like the Netscape, but it won't adjust content like Netscape will. So if more content than space…content is cropped

Style Attributes in IE A matter of changing a CSS attribute with some JavaScript Much easier than Netscape In IE object.style.styleAttribute = value; Quote.style.fontSize="16pt"; Most JavaScript style is similar to CSS background-image versus backgroundImage

Multiple CSS Changes object.style.cssText=styles; Quote.style.cssText="color:#ff0000 font-size:16pt"; Use a predefined Class setting object.className=class; Quote.className="casual";

Changing StyleSheets h1 {font-size:36pt} h2 {font-size:34pt} h1 {font-size:20pt} h2 {font-size:18pt}

Disable One h1 {font-size:36pt} h2 {font-size:34pt} h1 {font-size:20pt} h2 {font-size:18pt}

Referring to a StyleSheet You can use large small stylesheets(0) stylesheets(1)

Using and Manipulating small.disabled=true; small.disabled=false; large.addRule("h3", "font- color:#ff0000");

CSS Display h1 {font-size:36pt} h2 {font-size:34pt}.hide {display:none}.unhide {display:""} Why "display" instead of "visibility"?

Use those DIVs Show or not? Hide Me No, why not?

Toggle Function function toggleView(Text) { if (Text.className=="hide") { Text.className="unhide" } else { Text.className="hide" }

Use a Click Event Overview