Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.

Slides:



Advertisements
Similar presentations
Frames How to make a page that uses frames. Preview There used to be a time that frames were frowned upon because most browsers did not support them Nowadays.
Advertisements

Frames.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Multimedia and the World Wide Web HCI 201 Lecture Notes #5A.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
COS 125 Day 25. Agenda  Assignment #7 Due  Final capstone progress report due next class  Assignment #8 Posted Due April 25 One more to go  Exam #5.
Frames 1 Lecture HTML: Frames and Miscellaneous Tags.
XP 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial 5.
Compiled by ackoo Creating Frames. Compiled by ackoo Recall this… Table cell 1 Table cell 2 Table cell 3 Table cell 4.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
The Power of Tables They aren't just for sitting stuff on anymore...
Create a Web Site with Frames
Web Technologies Lecture # 5 : HTML Frames. Objectives n Create/control appearance & placement of frames n Control the behavior of hyperlinks on pages.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Chapter 6 Working with Frames.
 You've probably come into contact with web sites in which the browser window seemingly allowed you to move around between several different pages. 
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
Frameset. FrameSet With frames, we can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each.
Lecture on: Frames. FRAMES VERSUS TABLES Frames allow part of the page, usually a navigation bar, to stay put.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
XHTML1 Topics Work with the Frameset Document Type Definition (DTD) Create frames Use the target and base attributes Create nested frames Format frames.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
FRAMES. With frames, we can display more than one HTML document in the same browser window. Each HTML document is called the same browser window. Each.
Frame Page A Frame Page does the following: –Defines the size of each frame. –Defines how the window will be broken up – rows or columns. –Specifies which.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
Working with HTML Frames The Good, The Bad & The Ugly.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
For the World Wide Web Designing with Frames.  One of the most popular climbing schools in Colorado is Cliff Hangers. Located in Bolder, Cliff Hangers.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Chapter 8 HTML Frames. 2 Principles of Web Design Chapter 8 Objectives Understand the benefits and drawbacks of frames Understand and use frames syntax.
Windows and frames and the anchor tag. Frames Independent, scrollable portions of a Web browser window, with each frame capable of containing its own.
Web111a_chapt05.ppt HTM: Section 5 Frames A section of the browser window capable of displaying an entire web page Display multiple web pages on the screen.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Chapter 5: Windows and Frames
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Committed to Shaping the Next Generation of IT Experts. Essentials For Design Dreamweaver Level One Julian Rickards Project 7 Frames.
FRAMES. Frames allow you to divide the page into several rectangular areas and to display a separate document in each rectangle. Each of those rectangles.
Windows and frames and the anchor tag. Frames Independent, scrollable portions of a Web browser window, with each frame capable of containing its own.
1 HTML Frames
© Marty Hall, Larry Brown Web core programming 1 HTML Frames.
Project 10: Exploring the Window Object Essentials for Design JavaScript Level One Michael Brooks.
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
CSCI N241: Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Working with Frames.
INTRODUCTORY Tutorial 9 Creating Frames. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Decide when to use frames for a Web site Learn.
1 HTML Frames
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
XHTML Introductory1 Frames Chapter 5. XHTML Introductory2 Objectives In this chapter, you will: Work with the Frameset Document Type Definition (DTD)
HTML Comprehensive Concepts and Techniques Second Edition Creating Frames on a Web Page.
Introduction to HTML.
HTML Structure II (Frame)
Tutorial 8 Designing a Web Site with Frames
Designing a Web Site with Frames
Programming the Web using XHTML and JavaScript
Client-Side Internet and Web Programming
Table of Contents Creating Frames Frameset Tag and its attributes
Table of Contents Creating Frames Frameset Tag and its attributes
Table of Contents Creating Frames Frameset Tag and its attributes
Tutorial 8 Designing a Web Site with Frames
HTML Frames
Presentation transcript:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L. Valqui Essentials for Design XHTML

Copyright (c) 2004 Prentice-Hall. All rights reserved. 2 Why Use Frames?  Purpose of a frame – subdivide a Web page into logical sections  Many advantages:  Some sections fixed, others scrollable  Constant navigational and menu elements  Dynamically changeable content areas

Copyright (c) 2004 Prentice-Hall. All rights reserved. 3 Framesets and Frames  Frameset  Similar to the layout of a printed document  Tells the browser how to lay out the page  Tells what frames to include in each section   Frame  Individual subsection of a page  Tells the browser what content to put into page 

Copyright (c) 2004 Prentice-Hall. All rights reserved. 4 and Attributes  Frameset  cols – specifies sizes of each side-by-side frame in the frameset  rows – specifies sizes of each top-or-bottom frame in the frameset  Size specifications  Relative (percentage)  Fixed (pixel) size specifications  Asterisk (*) – frame can take the remainder of the page  Frame  src – indicates the html file that will occupy a frame

Copyright (c) 2004 Prentice-Hall. All rights reserved. 5 Effects of and (with columns) Frames Left frame is 20% of page width, right frame is 80%

Copyright (c) 2004 Prentice-Hall. All rights reserved. 6 Effects of and (with rows) The Winter and the Summer Top frame is 100 pixels high, bottom frame takes up remainder of page

Copyright (c) 2004 Prentice-Hall. All rights reserved. 7 Nesting Framesets inside other Framesets  Direct approach  Code the nested frameset in the same HTML file as the outer frameset  Alternative approach  Code the nested frameset in a separate page, and make the separate page one of the frames of the outer frameset

Copyright (c) 2004 Prentice-Hall. All rights reserved. 8 Direct Approach The Winter and the Summer

Copyright (c) 2004 Prentice-Hall. All rights reserved. 9 Alternative Approach The Winter and the Summer The Warm Months of the Year

Copyright (c) 2004 Prentice-Hall. All rights reserved. 10 Effect of Frame Nesting Both approaches have the same effect Note that the right frame is subdivided into two subframes

Copyright (c) 2004 Prentice-Hall. All rights reserved. 11 CSS vs. Frames  Frames and tables can be used for horizontal and vertical placement  But these have limitations  CSS allows finer control over page layout than tables or frames  With XHTML 2.0, CSS will become more predominant

Copyright (c) 2004 Prentice-Hall. All rights reserved. 12 Attributes  noresize – no value needed. If it is included, the frame's size is fixed, and the grey border bar cannot be moved  NOTE: if noresize is not set, the mouse cursor changes a double-sided arrow when hovered over the frame border, allowing resize  scrolling – three possible values  yes – scroll bars always visible  no – scroll bars never visible  auto – scroll bars visible only when needed

Copyright (c) 2004 Prentice-Hall. All rights reserved. 13 Effect of noresize Attribute Two-sided arrow will appear and frame can resize if the frame tag is specified as: (without the norseize attribute set) But this will not happen if the frame tag is specified as

Copyright (c) 2004 Prentice-Hall. All rights reserved. 14 Effect of scrolling Attribute Scrollbars will not appear if the frame tag is specified as:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 15 Using Frame Margins and Borders  Setting height and width margins  marginheight attribute – sets the margin spacing at top and bottom of a frame  marginwidth attribute – sets the margin spacing at left and right of a frame  Specifying border width of a frame  frameborder attribute of tag – sets the width of a frame's border  border attribute of tag – sets the width of a frameset's border

Copyright (c) 2004 Prentice-Hall. All rights reserved. 16 Effect of Specifying Margins Margin in bottom of top frame, caused by changing to

Copyright (c) 2004 Prentice-Hall. All rights reserved. 17 Effect of Specifying Border Width All frame borders removed, caused by this code:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 18 Targeting Named Frames  The tag's name attribute  Specifies an identifying name for a frame  Name cannot begin with underscore character  Underscore _ character used for special cases  Once named, a frame can be targeted  Anchor tag's target attribute tells browser which frame to use for displaying new content

Copyright (c) 2004 Prentice-Hall. All rights reserved. 19 Using the name and target Attributes winter !

Copyright (c) 2004 Prentice-Hall. All rights reserved. 20 Effect of Clicking on the Link Because hyperlink reference specified a target frame, the new page went to the target winter !

Copyright (c) 2004 Prentice-Hall. All rights reserved. 21 Using a Base Target  Concepts  Advantage of base targets  Refreshing frames  Hands-on Exercise  Add a Base Target

Copyright (c) 2004 Prentice-Hall. All rights reserved. 22 Advantages of Using a Base Target  Base target can be used to specify a commonly used target  Therefore, unnecessary to repeatedly type the same target for multiple links  Saves typing time and reduces risk of typing error  Accomplished using the tag  Example syntax:  Will cause all hyperlinks to send content to the "main" frame

Copyright (c) 2004 Prentice-Hall. All rights reserved. 23 Refreshing Pages with Frames  Refreshing the overall page doesn’t always refresh individual frames  To refresh individual frames:  In Windows – right-click the frame then choose the Refresh Frame option from the pop-up menu  In Macintosh – hold down the mouse button in the frame then choose Refresh Page (or Refresh Frame)

Copyright (c) 2004 Prentice-Hall. All rights reserved. 24 Types of Special Targets  _self target replaces the content in the same frame  _parent target sends the content to the parent document of the frame  _blank target opens a completely new browser window for the new page (old window also remains showing)  _top target replaces the main frameset (not in a frame, but in the entire window)

Copyright (c) 2004 Prentice-Hall. All rights reserved. 25 Effect of the _self Target Clicking the Select All Categories link causes new page to appear in same frame because of this tag: See All Categories

Copyright (c) 2004 Prentice-Hall. All rights reserved. 26 Effect of the _top Target Clicking any link causes new page to appear as the whole browser window instead of in a single frame because of this:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 27 Web Site Flowcharts  Flowchart – diagram that shows the navigational flow of a Web site  Useful for planning and designing a complex Web site  Create the flowchart before actually creating and linking the site’s pages

Copyright (c) 2004 Prentice-Hall. All rights reserved. 28 What is a Parent?  A parent of a frame is the document containing its frameset  It is not the frameset itself  Therefore, if you want to use nested framesets, use the indirect method (nested frameset in a separate.htm file)

Copyright (c) 2004 Prentice-Hall. All rights reserved. 29 Problem with Frames  Non-frame browsers will not recognize frames  But now, almost all browsers support frames  Still, search engines sometimes index only one frame of a frameset, causing display problems  XHTML 2.0 is eliminating frames  Replaced with XFrames

Copyright (c) 2004 Prentice-Hall. All rights reserved. 30 Button Tags

Copyright (c) 2004 Prentice-Hall. All rights reserved. 31 Form Script Options  Form submissions go to Web server scripts to be processed  Server script is identified in the form tag's action attribute  Common types of server-side scripts  Common Gateway Interface (CGI)  ColdFusion  Active Server Pages (ASP)

Copyright (c) 2004 Prentice-Hall. All rights reserved. 32 The tag  Provides content to browsers that don't recognize frames  Example syntax:   Thank you for visiting our Web site. We are currently working on a frameless version of this site. 