These accompanying files are provided on the included Dynamic Learning: Dreamweaver CS3 DVD, developed by the same team of Adobe Certified Instructors and Dreamweaverexperts who have cre
Trang 1by Fred Gerantabee; Aquent Graphics Institute(AGI)
Publisher: O'Reilly Pub Date: October 15, 2007 Print ISBN-10: 0-596-51057-8 Print ISBN-13: 978-0-59-651057-2 Pages: 416
Table of Contents | Index
Overview
Learning Dreamweaver CS3 is like having access to a top-notch
team of your very own instructors Written by product expertsand trainers who have produced many of Adobe's training titles,the book takes you step-by-step through the process of learning
to use Dreamweaver X like a pro
This full-color book is organized into lessons, with easy-to-follow instructions, tips, examples, and review questions at theend of every lesson Each lesson is self-contained, so you can
Trang 2In addition, the book comes with a companion DVD with videotutorials and all of the files needed for the lessons, includingfinal, completed Dreamweaver files A free Instructor's Guide isavailable online
Trang 3by Fred Gerantabee; Aquent Graphics Institute(AGI)
Publisher: O'Reilly Pub Date: October 15, 2007 Print ISBN-10: 0-596-51057-8 Print ISBN-13: 978-0-59-651057-2 Pages: 416
Trang 5Section 7.6 Using grids
Section 7.7 The tag selector
Section 7.8 Switching between tabs and cascadingdocuments
Trang 6Section 10.2 Creating reusable page elementsSection 10.3 Introducing snippets
Trang 7Section 13.2 Working with the Files panel
Section 13.3 Using Check In/Check Out and design notesSection 13.4 Testing site integrity
Section 13.11 Review
Index
Trang 8O'Reilly books may be purchased for educational, business, orsales promotional use Online editions are also available formost titles (safari.oreilly.com) For more information, contactour corporate/institutional sales department: 800.998.9938 or
corporate@oreilly.com
The O'Reilly logo is a registered trademark of O'Reilly Media,
Trang 9and related trade dress are trademarks of O'Reilly Media, Inc.Many of the designations used by manufacturers and sellers todistinguish their products are claimed as trademarks Wherethose designations appear in this book, and O'Reilly Media, Inc.was aware of a trademark claim, the designations have beenprinted in caps or initial caps Adobe Dreamweaver™ is a
registered trademark of Adobe Systems, Inc in the United
States and other countries O'Reilly Media, Inc is independent
of Adobe Systems, Inc
While every precaution has been taken in the preparation of thisbook, the publisher and author assume no responsibility for
errors or omissions, or for damages resulting from the use ofthe information contained herein
Trang 10About Dynamic Learning
Adobe® Dreamweaver® CS3 lets you design, develop, and maintain web sites and web pages Both designers and
developers use Dreamweaver CS3 which lets you create and edit content using a visual layout or a coding environment.
Dreamweaver CS3 also provides tight integration with other Adobe products such as Photoshop® CS3 and Flash® CS3
Professional.
Dynamic Learning: Dreamweaver CS3 is like having your own
personal instructor guiding you through each lesson while youwork at your own speed This book includes 13 self-paced
lessons that let you discover essential skills and explore thenew features and capabilities of Dreamweaver CS3 Each lessonincludes step-by-step instructions and lesson files, along withvideo tutorials that complement the topics covered in each
lesson These accompanying files are provided on the included
Dynamic Learning: Dreamweaver CS3 DVD, developed by the
same team of Adobe Certified Instructors and Dreamweaverexperts who have created many of the official training titles forAdobe Systems
locate, save, and open files You should also know how to useyour mouse to access menus and commands
Before starting the lessons files in Dynamic Learning:
Dreamweaver CS3, make sure that you have installed Adobe
Dreamweaver CS3 The software is sold separately, and not
Trang 11System requirements
Before starting the lessons in Dynamic Learning: Dreamweaver
CS3, make sure that your computer is equipped for running
Adobe Dreamweaver CS3, which you must purchase separately.The minimum system requirements for your computer to
Microsoft® Windows® XP with Service Pack 2 or
Windows Vista™ Home Premium, Business, Ultimate, orEnterprise (certified for 32-bit editions)
512MB of RAM (1GB recommended)
1 GB of available hard-disk space (additional free spacerequired during installation)
1,024x768 monitor resolution with 16-bit video cardDVD-ROM drive
Trang 12512MB of RAM (1GB recommended)
1GB of available hard-disk space (additional free spacerequired during installation)
1,024x768 monitor resolution with 16-bit video cardDVD-ROM drive
Internet or phone connection required for product
activation
Starting Adobe Dreamweaver CS3
As with most software, Adobe Dreamweaver CS3 is launched bylocating the application in your Programs folder (Windows) orApplications folder (Mac OS) If necessary, follow these steps tostart the Adobe Dreamweaver CS3 application:
Windows
1 Choose Start > All Programs > Adobe
Dreamweaver CS3.
2 Close the Welcome Screen when it appears You are now ready to use Adobe Dreamweaver CS3.
Mac OS
1 Open the Applications folder, and then open the Adobe Dreamweaver CS3 folder.
2 Double-click on the Adobe Dreamweaver CS3 application icon.
Trang 133 Close the Welcome Screen when it appears You are now ready to use Adobe Dreamweaver CS3.
Menus and commands are identified throughoutthe book by using the greater-than symbol (>)
For example, the command to print a documentwould be identified as File > Print
Resetting the Dreamweaver workspace
To make certain that your panels and working environment areconsistent, you should reset your workspace at the start of eachlesson To reset your workspace, choose Window > WorkspaceLayout > Designer (Windows) or Window > Workspace Layout
> Default (Mac OS)
Loading lesson files
The Dynamic Learning: Dreamweaver CS3 Digital Classroom
DVD includes files that accompany the exercises for each of the
Trang 14supplied DVD to your hard drive, or copy only the lesson foldersfor the individual lessons you wish to complete
For each lesson in the book, the files are referenced by the filename of each file The exact location of each file on your
computer is not used, as you may have placed the files in a
unique location on your hard drive We suggest placing the
lesson files in the My Documents folder (Windows) or at the toplevel of your hard drive (Mac OS)
to complete, and drag the folder(s) to the dwlessonsfolder you created on your hard drive
Macintosh users should see the important note on the nextpage
Macintosh users may need to unlock the files afterthey are copied from the DVD This only applies toMacOS computers After copying the files fromthe DVD to your computer, select the dwlessonsfolder, then choose File > Get Info In the
Trang 15dwlessons info window, click the You can drop-Click the arrow to the left of Details, then click theApply to enclosed items button at the bottom ofthe window You may need to click the padlockicon before the Mac OS allows you to changethese permissions After making these changes,close the window
Working with the video tutorials
Your Dynamic Learning: Dreamweaver CS3 Digital Classroom
DVD comes with video tutorials developed by the authors tohelp you understand the concepts explored in each lesson Eachtutorial is approximately five minutes long and demonstratesand explains the concepts and features covered in the lesson.The videos are designed to supplement your understanding ofthe material in the chapter We have selected exercises andexamples that we feel will be most useful to you You may want
to view the entire video for each lesson before you begin thatlesson Additionally, at certain points in a lesson, you will
encounter the DVD icon The icon, with appropriate lesson
number, indicates that an overview of the exercise being
described can be found in the accompanying video
DVD video icon.
Trang 16The DVD included with this book includes video tutorials foreach lesson Although you can view the lessons on your
To view the video tutorials, you need the Adobe Flash Player 8
or later (Adobe Flash Player 9) Earlier versions of the FlashPlayer will not play the videos correctly If you're not sure thatyou have the latest version of the Flash Player, you can
download it for free from the Adobe web site:
http://www.adobe.com/support/flashplayer/downloads.html
The accompanying video files use the Adobe FlashVideo format to make universal viewing possiblefor users on both Windows and Mac OS
computers The most recent versions of the freeAdobe Flash Player software generally improveplayback performance of these video files
Trang 174 Choose Open > Open With > Flash Player If there is no
Flash Player option available, you may need to install thelatest version of Flash Player
Macintosh users on the new Intel-based Mac
OS computers may need to download thestandalone Flash Player from Adobe.com tosee this option If the Flash Player is installed,you can just double-click the video tutorial fileyou wish to view
5 The video tutorial opens, using the Flash Player, and begins
to play The Flash Player has a simple user interface thatallows you to control the viewing experience, including
stopping, pausing, playing, and restarting the video Youcan also rewind or fast-forward, and adjust the playbackvolume
A Go to beginning B Play/Pause C Fast-forward/rewind D Stop E Volume Off /On F Volume
control.
Trang 18Additional resources
The Dynamic Learning series goes beyond the training books.You can continue your learning online, with training videos, and
at seminars and conferences
Video training series
Expand your knowledge of the Adobe Creative Suite 3
applications with the Digital Classroom video training series thatcomplements the skills you'll learn in this book Learn more at
agitraining.com or oreilly.com
Seminars and conferences
The authors of the Dynamic Learning seminar series frequentlyconduct in-person seminars and speak at conferences, includingthe annual CRE8 Conference Learn more at agitraining.com or
oreilly.com
Resources for educators
Visit oreilly.com to access resources for educators, includinginstructors' guides for incorporating Dynamic Learning into yourcurriculum
Images and animations used in this book
The files provided on the DVD are to be used only in connectionwith the tutorials in this book They are copyrighted, and may
Trang 19purpose without first obtaining permission from the copyrightowner
Trang 20Whether you are a novice web designer or an experienced developer, Dreamweaver is a comprehensive tool you can use for site design, layout, and management In this lesson, you'll take a tour of Dreamweaver's key features and get a better understanding of how web pages work.
1.1 Starting up
Before starting, make sure that your tools and panels are
consistent by resetting your workspace See "Resetting theDreamweaver workspace" on page 3
You will work with several files from the dw01lessons folder inthis lesson Make sure that you have loaded the dwlessonsfolder onto your hard drive from the supplied DVD See
"Loading lesson files" on page 3
Trang 21See Lesson 1 in action!
Use the accompanying video to gain a better
understanding of how to use some of the features shown
in this lesson Open the Dynamic_Learning_DW_CS3.swffile located in the Videos folder and select Lesson 1 toview the video training file for this lesson
Trang 22Whether you are a novice web designer or an experienced developer, Dreamweaver is a comprehensive tool you can use for site design, layout, and management In this lesson, you'll take a tour of Dreamweaver's key features and get a better understanding of how web pages work.
1.1 Starting up
Before starting, make sure that your tools and panels are
consistent by resetting your workspace See "Resetting theDreamweaver workspace" on page 3
You will work with several files from the dw01lessons folder inthis lesson Make sure that you have loaded the dwlessonsfolder onto your hard drive from the supplied DVD See
"Loading lesson files" on page 3
Trang 23See Lesson 1 in action!
Use the accompanying video to gain a better
understanding of how to use some of the features shown
in this lesson Open the Dynamic_Learning_DW_CS3.swffile located in the Videos folder and select Lesson 1 toview the video training file for this lesson
Trang 24Dreamweaver is an excellent coding and development tool fornew and experienced users alike, and has quickly become thepreferred web site creation and management program,
providing a creative environment for designers Whether youdesign web sites, develop mobile phone content, or script
complex server-side applications, Dreamweaver has something
to offer
1.2.1 Design and layout tools
Dreamweaver's many icon-driven menus and detailed panelsmake it easy to insert and format text, images, and media
(such as video files and Flash movies) This means that you cancreate great-looking and functional web pages without knowing
a single line of code—Dreamweaver takes care of building thecode behind the scenes for you Dreamweaver does not creategraphics from scratch; instead, it is fully integrated with AdobePhotoshop CS3, so you can import and adjust graphics fromwithin the application
Figure 1-1 The Insert bar features icons in several categories that let you easily add images, web forms, and
(such as page templates and library items), and several safetymechanisms (such as link checkers and site reports) so you canensure that your site works well and looks good If you're
designing your pages with Cascading Style Sheets (CSS), the
Trang 251.2.3 Coding environment and text editor
Dreamweaver lets you work in a code-only view of your
document, which acts as a powerful text editor Edit HTML codedirectly and switch views to see the results of your code as youwork Enhancements such as color coding, indentation, andvisual aids make Dreamweaver a perfect text editing or codingenvironment for web designers of any level
For more experienced developers, Dreamweaver also supportspopular coding and scripting languages, such as JavaScript, andseveral server-side languages, including ColdFusion, PHP, andASP.NET Specialized insert menus and code panels help you tobuild pages and applications in the language of your choice
Figure 1-2 Code view is a full-featured text editor that color-codes tags and scripts for editing that's easier to
decipher.
Scripting languages, such as those used to buildinteractive web pages or e-commerce sites, fallinto two categories: client-side and server-side
Trang 26designers to get up and running quickly It's not unusual to seeDreamweaver utilized for personal projects or by small
businesses and media professionals, such as photographers andpainters, to maintain a web presence
1.2.5 What's new in Dreamweaver CS3?
CS3 introduces many innovative design and coding features aswell as improvements to Dreamweaver's flagship features Nowthat Dreamweaver is part of the industry-standard Adobe
Creative Suite, it has been engineered to work as seamlessly aspossible with files from other CS3 applications, offering nativesupport for Photoshop files and the ability to edit placed imagesdirectly in Adobe Photoshop CS3
Trang 27framework for Ajax
Asynchronous JavaScript and XML (AJAX) is a popular
combination of technologies used to create highly interactiveweb applications, or Rich Internet applications (RIAs) The Spryframework for Ajax is a JavaScript library for web designers thatenhances user interactivity through navigation and form
components as well as XML data-driven objects Users of alllevels can add visual effects, create intuitive menus, and
develop within the Spry framework without having to climb thesteep learning curve normally required to create these
advanced features from scratch
The Insert bar features a new Spry Widgets category with XMLdata-driven objects, self-validating form components, and
style menus that you can easily customize and format with CSS(Cascading Style Sheets)
enhanced navigation items, such as drop-down and accordion-Figure 1-3 The new Spry Widgets section of the Insert
bar.
To view and customize a navigation bar created using the newSpry Widgets pane, follow these steps:
1 Launch Dreamweaver CS3.
2 Choose File > Open, or press the Open button ( ) on theWelcome Screen
3 When the Open dialog box appears, navigate to the
dw01lessons folder and select SpryWidgets.html Press
Open
4 Preview the document by choosing File > Preview in
Trang 28button ( ) in the Document toolbar Choose the defaultweb browser or pick from a list of browsers installed on
your computer The document will open in a browser
window You can roll over the menu elements to see themexpand to reveal more menus
If you are using Internet Explorer on the Windows platform,
you may need to select the Allow Blocked Content option
under the toolbar and press OK This is a security feature inthis browser which prevents the external javascript file used
Figure 1-5 Select the entire menu by its label; you can view and modify all of the menu options in the Property inspector.
Trang 296 In the Property inspector, Link 1, Link 2, and Link 3
represent locations in the menu where you can place anylinks you want Select Link 1 In the text field labeled Text,
enter the words Adobe Dreamweaver.
7 In the text field labeled Link, type
http://www.adobe.com/dreamweaver in place of the poundsign (#) Press Enter (Windows) or Return (Mac OS) tocommit the change
Figure 1-6 Use the Property inspector to
create a link on your page.
Trang 308 Choose File > Save to save the page, and preview the new
changes you made by choosing File > Preview in Browser or
by pressing the Preview/Debug in browser button in theDocument toolbar The new link you added appears when
you move the cursor over Your Links; you can now click the
link to jump to the Adobe site
The method is the same to customize the other two links—try it to see how easy it is to create interactive menus tonavigate around your web site or other web sites
9 Close the browser and return to Dreamweaver Choose File
> Close to close the document
Trang 31Figure 1-7 The new Effects group contains highly
interactive Spry effects.
1 Choose File > Open When the Open dialog box appears,
Trang 322 Choose File > Preview in Browser or press the
Preview/Debug in browser button ( ) on the Documenttoolbar The page will launch in a new browser window
3 Use your cursor to roll over and select the different boxes
on the page to see how Spry effects can make objectsdisappear, highlight, and fade to bring life and interactivity
to an otherwise simple web page
Figure 1-8 Each box uses a different Spry effect for some very cool interactivity.
Trang 334 Close the browser and return to Dreamweaver Choose File
> Close
Trang 34Users of the industry-standard Adobe Photoshop CS3
application can now easily bring designs and components
they've created in Photoshop into Dreamweaver for use in theirweb pages The new Optimization panel lets you specify
settings for how to import a Photoshop document Editing thedocument later is a snap; just double-click it and edit the
original layered.psd file directly in Photoshop CS3 You can evenselect portions of documents in Photoshop CS3 and paste themdirectly into a document in Dreamweaver
Now you will see how easy it is to import Photoshop images inthe psd file format into your web pages
Trang 366 Next, the Image Tag Accessibility Attributes dialog box
appears Press OK The image is placed in your document
Figure 1-12 The image placed into your
document.
Trang 377 Choose File > Save to save your work, then choose File >
Close
You can also drag and drop psd files from a folder
on the Desktop directly into a Dreamweaverdocument Give it a try!
Trang 38The continuing efforts of web designers to find the best designpractices have resulted in a migration from table-based to CSS-based layouts The use of tables for web page layouts is an oldtechnique, preferred for their easy grid-like structure and
guaranteed compatibility in most older browsers However, thepositioning flexibility that only CSS offers has made it the
standard for today's web designers
If you're a CSS novice but you want to get started on the rightfoot, the new CSS layouts in Dreamweaver will quickly get you
up and running Extensive inline comments included in the codewill help you learn so that you can sharpen your CSS expertisewhile being creative and productive
Figure 1-13 Choose from lots of ready-to-customize CSS layouts that you can modify with your own content,
colors, and images.
1 Choose File > New Under Blank Page > HTML, you will see
dozens of preconstructed layouts that take full advantage ofthe flexibility and power of CSS Press Cancel
Trang 392 To see an example of a page based on one of these layouts,
Choose File > Open Navigate to the dw01lessons folderand select the CSSLayouts.html document Press Open Thispage is based on the three-column liquid-header and footerCSS layout, which you can find under New Document >
HTML
column, liquid-header and footer CSS layout.
Figure 1-14 Dreamweaver's built-in, three-Figure 1-15 A customized version of this CSS
layout with some basic formatting.
Trang 403 Leave this file open, as you will use it in the next exercise.
1.5.1 Browser compatibility check
For years, web site designers have battled with consistencyissues across different browsers, which often leads to sites
being geared toward one specific browser or another This isespecially true of CSS-dependent web pages, where varyingstandards among browsers means lots of testing, trial, and
error Dreamweaver's new Browser Compatibility Check featurelocates any potentially buggy CSS and HTML combinations anddisplays them in the Results panel By combining Browser
Compatibility Check with the CSS Advisor, you can address andresolve any potential compatibility issues without juggling
browsers
1.5.2 The Manage CSS feature and the CSS
Advisor
With CSS you can format, fine-tune, and position text, images,and content boxes creatively and precisely on your web page.Dreamweaver CS3 provides several panels, menus, and helpers