Dreamweaver CS5 : The Missing Manual (Paperback)
暫譯: Dreamweaver CS5:缺失的手冊(平裝本)
David Sawyer McFarland
- 出版商: O'Reilly
- 出版日期: 2010-07-27
- 定價: $1,750
- 售價: 1.7 折 $299
- 語言: 英文
- 頁數: 1096
- 裝訂: Paperback
- ISBN: 1449381812
- ISBN-13: 9781449381813
-
相關分類:
Dreamweaver
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$880$695 -
$880$695 -
$550$435 -
$1,362Fundamentals of Data Structures in C++, 2/e (Paperback)
-
$530$419 -
$380$296 -
$650$553 -
$860$731 -
$3,200$3,040 -
$1,350$1,283 -
$680$537 -
$820$648 -
$890$757 -
$580$493 -
$450$351 -
$590$502 -
$850$723 -
$450$356 -
$450$356 -
$580$199 -
$850$723 -
$550$468 -
$480$379 -
$490$382 -
$420$332
商品描述
Web designers, web producers, and webmasters rely on one program above all others to design, build, and manage professional websites: Adobe Dreamweaver. It provides the tools you need to create everything from simple HTML pages to database-driven PHP pages. But what makes Dreamweaver so versatile is also what makes it difficult to learn. This bestselling guide offers you with clear, jargon-free explanations to help you master this sophisticated program -- and bring stunning, contemporary websites to life.
Written by veteran Dreamweaver teacher and author David McFarland, Dreamweaver CS5: The Missing Manual takes you through site creation step-by-step, from building your very first page to launching a template-driven, fully interactive site. You'll hone your skills with the help of hands-on, guided tutorials throughout the book.
- Learn how to control the appearance of your web pages with CSS, from basic to advanced techniques
- Design dynamic, database-driven websites, from blogs to product catalogs, and from shopping carts to newsletter signup forms
- Add interactivity to your website with ready-to-use JavaScript programs from Adobe's Spry Framework
- Effortlessly control the many helper files that power your website and manage thousands of pages
- Examine web page components and Dreamweaver's capabilities with the book's "live examples"
Add Spry Tabbed Panels to Web Pages
Some website visitors are loath to scroll; if they don’t see what they want when a page first loads, they move on. Because of this, some web designers divide long passages of information into multiple pages so that each page presents small, easy-to-digest chunks. Of course, that means building several pages instead of just one, and forces visitors to click through (and wait for) a series of pages. Spry Tabbed Panels provides an alternative (see Figure 13-1). Instead of creating one long page, or several smaller pages, you can organize information into separate tabbed panels. That way, your content is always front and center, and your visitors can easily access different sections by clicking a tab above each panel.
Adding a Tabbed Panel
You can place Spry tabbed panels anywhere on a web page. But since the tabs form a single row at the top of the group of panels, you need enough horizontal space to accommodate all the tabs. Unless you have only a couple of tabs with one-word text labels, you should place the tabbed panels in a fairly wide space, such as the main column of a web page, or across the entire width of the page. Just follow these steps:
![]() |
the Spry Tabbed Panels widget. Clicking a tab opens a new panel’s worth of information without the browser having to load a new web page. |
1. In the document window, click where you wish to insert the panels. For example, inside a div tag.
2. Choose Insert > Spry > Spry Tabbed Panels, or, on the Insert panel’s Spry category, click one of the Spry Tabbed Panel’s buttons (see Figure 13-2).
You can find all the Spry goodies on the Insert panel’s Spry category (Figure 13-2, left); you’ll also find several Spry widgets (including tabbed panels) listed under the Layout category (Figure 13-2, right), and other Spry buttons grouped under other tabs (form validation Spry widgets appear under the Forms tab, for example).
![]() |
in the button’s lower-right corner. It’s even easier to distinguish them from other buttons if, from the Insert Panel’s category menu, you choose Color Icons--this changes the drab gray starburst to a bright orange. |
After you insert a tabbed panel, you see two tabs and two panels on the page (Figure 13-3); in addition, a blue tab appears above the panels indicating the Spry widget. The blue tab appears only in Dreamweaver’s Design view, not in a guest’s web browser. It gives you an easy way to select the Spry widget and access its properties in the Property inspector.
- Note: When you save a page after inserting a Spry Tabbed Panel, Dreamweaver notifies you that it has added two files to the site: a CSS file (SpryTabbedPanels.css) for formatting the panel group, and a JavaScript file (SpryTabbedPanels.js) to make the panels appear and disappear when visitors click the tabs. Dreamweaver saves both files in the SpryAssets folder in your site’s root folder. Make sure you upload this folder when you move your site onto your web server.
3. In the Property inspector, name the panel group (Figure 13-3).
This step is optional. Dreamweaver provides a generic name (TabbedPanels1, for example) for the group of panels. You don’t really have to change this name; it never appears in a browser window. But if you ever take the plunge into manually modifying your Spry widgets in Code view, you may want to change the Spry panel group’s name to something more descriptive. If you create a group of tabbed panels to house information about a product, for example, you might name the panel group productPanels. A descriptive name helps you identify code related to the panel group if you work in Code view to enhance or change the functionality of the panels.
![]() |
tab and panel. However, if you’d rather open another panel when the page loads, select the relevant tab’s name in the Property inspector’s “Default panel” menu. |
4. Add additional panels.
If two panels aren’t enough for your needs, use the Property inspector to add more. Above the list of tab names, click the + button (see Figure 13-3) to add a new panel. To remove a panel, in the same list, click the name of a tab, and then click the minus (-) button. You can also reorder the panels by selecting a tab from the list, and then clicking the up or down arrow button. The up arrow moves a panel to the left, while the down arrow moves a panel to the right.
- Note: A Spry widget’s properties appear in the Property inspector only when you select the widget. To do so, click the blue tab above the elements inside the widget.
商品描述(中文翻譯)
Web 設計師、網頁製作人和網站管理員依賴一個程式來設計、建構和管理專業網站:Adobe Dreamweaver。它提供了從簡單的 HTML 頁面到資料庫驅動的 PHP 頁面所需的工具。但使 Dreamweaver 如此多功能的特性,也使其學習變得困難。本書暢銷指南提供清晰、無行話的解釋,幫助您掌握這個複雜的程式,並讓驚豔、現代的網站成為現實。
本書由資深 Dreamweaver 教師和作者 David McFarland 撰寫,Dreamweaver CS5: The Missing Manual 逐步引導您創建網站,從建立您的第一個頁面到啟動一個模板驅動的全互動網站。您將在全書的實作指導教程中磨練您的技能。
- 學習如何使用 CSS 控制網頁的外觀,從基本到進階技術
- 設計動態的資料庫驅動網站,從部落格到產品目錄,從購物車到電子報註冊表單
- 使用 Adobe 的 Spry Framework 中現成的 JavaScript 程式為您的網站添加互動性
- 輕鬆控制驅動您網站的多個輔助檔案,並管理數千個頁面
- 通過本書的「即時範例」檢視網頁組件和 Dreamweaver 的功能
將 Spry 標籤面板添加到網頁
一些網站訪客不喜歡滾動;如果他們在頁面首次加載時沒有看到想要的內容,他們就會繼續前進。因此,一些網頁設計師將長篇資訊分成多個頁面,以便每個頁面呈現小而易於消化的內容。當然,這意味著需要建立多個頁面而不僅僅是一個,並迫使訪客點擊(並等待)一系列頁面。Spry 標籤面板提供了一種替代方案(見圖 13-1)。您可以將資訊組織成單獨的標籤面板,而不是創建一個長頁面或幾個較小的頁面。這樣,您的內容始終位於中央,訪客可以通過點擊每個面板上方的標籤輕鬆訪問不同的部分。
添加標籤面板
您可以將 Spry 標籤面板放置在網頁的任何位置。但由於標籤在面板組的頂部形成一行,您需要足夠的水平空間來容納所有標籤。除非您只有幾個帶有單字文本標籤的標籤,否則應將標籤面板放置在相當寬的空間中,例如網頁的主欄,或跨越整個頁面的寬度。只需按照以下步驟操作:
1. 在文件窗口中,單擊您希望插入面板的位置。例如,在 div 標籤內。
2. 選擇 插入 > Spry > Spry 標籤面板,或在插入面板的 Spry 類別中,單擊其中一個 Spry 標籤面板的按鈕(見圖 13-2)。
您可以在插入面板的 Spry 類別中找到所有 Spry 相關的內容(圖 13-2,左側);您還會在佈局類別下找到幾個 Spry 小工具(包括標籤面板)(圖 13-2,右側),以及其他標籤下分組的其他 Spry 按鈕(例如,表單驗證的 Spry 小工具出現在表單標籤下)。
在您插入標籤面板後,您會在頁面上看到兩個標籤和兩個面板(圖 13-3);此外,面板上方會出現一個藍色標籤,指示 Spry 小工具。藍色標籤僅在 Dreamweaver 的設計視圖中出現,而不會在訪客的網頁瀏覽器中顯示。它為您提供了一種簡單的方法來選擇 Spry 小工具並訪問其屬性檢查器。
注意:當您在插入 Spry 標籤面板後保存頁面時,Dreamweaver 會通知您它已經向網站添加了兩個檔案:一個 CSS 檔案(SpryTabbedPanels.css)用於格式化面板組,和一個 JavaScript 檔案(SpryTabbedPanels.js)用於在訪客點擊標籤時使面板顯示和隱藏。Dreamweaver 將這兩個檔案保存在您網站根資料夾中的 SpryAssets 資料夾中。當您將網站移到網頁伺服器上時,請確保上傳此資料夾。
3. 在屬性檢查器中,為面板組命名(圖 13-3)。
這一步是可選的。Dreamweaver 為面板組提供了一個通用名稱(例如 TabbedPanels1)。您不必真的改變這個名稱;它不會出現在瀏覽器窗口中。但如果您決定在代碼視圖中手動修改您的 Spry 小工具,您可能會想將 Spry 面板組的名稱更改為更具描述性的名稱。例如,如果您創建一組標籤面板來存放有關產品的資訊,您可能會將面板組命名為 productPanels。描述性名稱有助於您在代碼視圖中識別與面板組相關的代碼,以增強或更改面板的功能。
4. 添加額外的面板。
如果兩個面板不足以滿足您的需求,請使用屬性檢查器添加更多。在標籤名稱列表上方,單擊 + 按鈕(見圖 13-3)以添加新面板。要刪除面板,在同一列表中單擊標籤的名稱,然後單擊減號(-)按鈕。您還可以通過從列表中選擇一個標籤,然後單擊向上或向下箭頭按鈕來重新排序面板。向上箭頭將面板移到左側,而向下箭頭將面板移到右側。
注意:只有在您選擇小工具時,Spry 小工具的屬性才會出現在屬性檢查器中。要這樣做,請單擊小工具內部元素上方的藍色標籤。