Thông tin tài liệu:
Adobe GoLive 6.0- P8: This book, as well as the software described in it, is furnished under license and may be used or copied only in accordance with theterms of such license. The content of this book is furnished for informational use only, is subject to change without notice, andshould not be construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibilityor liability for any errors or inaccuracies that may appear in this book
Nội dung trích xuất từ tài liệu:
Adobe GoLive 6.0- P8 ADOBE GOLIVE 6.0 211 Classroom in a BookAbout absolute link pathsSite pages contain paths to a variety of linked files: other pages in the site, images displayed on the page, mediaitems embedded in the page, and so on. GoLive automatically uses relative paths for the destinations of links.In most cases, relative paths are appropriate to use in paths. But, if necessary for special cases, you can selec-tively change the paths to make them absolute, or set a preference to have GoLive make all new paths youcreate absolute by default. When you make a path absolute, the entire path from the root folder to the linkedfile is provided. Otherwise only a relative path is provided.Example: A page /root/pages/info/page.html (where root is the name of the root folder) contains the image/root/images/image.gif. The absolute path to the image file is /images/ image.gif. The relative path is../../images/image.gif.Absolute paths are useful in the following cases:• If a form references a CGI script at the root level of the site directory (or any other subdirectory), any ref-erences to that file are usually written as absolute.• If a common navigation bar is used on many pages that reside in folders at various hierarchical levels, youcan use an absolute path specification throughout to reference its image files, allowing you to copy and pastethe same code snippet onto all the pages.However, absolute paths work only at sites where there is a Web server providing information about the loca-tion of the site’s root folder. For the same reason, using absolute paths prevents you from previewing pages ina Web browser on your local computer—that is, a previewing browser has no way of locating this root folder.Note: An absolute path in GoLive is not a full path from the file system root or a fully qualified URL.Setting up absolute link pathsYou can specify absolute paths for all new links or for specific links.To make the path of a link absolute:1. Select the link.2. Do one of the following:• Choose Relative from the URL pop-up menu in the Inspector, if it is checked. (Unchecked indicates the linkis absolute.)• Choose Edit from the URL pop-up menu in the Inspector. In the Edit URL dialog box, click Make Absolute,and then click OK.212 LESSON 5 Creating Navigational Links You can also use the Edit URL dialog box to add URL parameters to the URL, and make the values for URL parameters come from dynamic content data sources. To set a preference that makes all new links absolute: 1. Choose Edit > Preferences. 2. Expand General preferences and select URL Handling. 3. In the right pane, select Make New Links Absolute and click OK. To specify a site setting that makes all new links absolute in the active site only: 1. Open a site. 2. Click the Site Settings button on the toolbar or choose Site > Settings. 3. In the left pane, select URL Handling. 4. In the right pane, select Make New Links Absolute and click OK. –From the Adobe GoLive 6.0 User Guide. Creating external links Until now, the links that you’ve created have been within pages (using anchors), and between pages in your site. You can also create links from your site to other sites on the Web. To do this, you’ll create a link to an external URL. First you need to store the URL that you want to use in the External tab of the site window. The External tab is useful for storing information that you may want to use in more than one place on your site. If you later need to update an item in the External tab, it is automatically updated wherever it appears in the site. 1 Click the External tab in the site window. ADOBE GOLIVE 6.0 213 Classroom in a Book2 Drag the URL icon from the Site set ( ) of the Objects palette to the External tab ofthe site window. This tab contains elements for sites, such as pages, URLs, and e-mailaddresses.A new, untitled URL entry is added to the External tab. Select the untitled URL, and theInspector changes to the Reference Inspector (in Mac OS, click on the Inspector to changeit). For this exercise, you’ll create an external link to the Adobe home page.3 With the URL you added in the External tab of the site window selected, rename theURL using either the Name field in the External tab or the Name fieldin the Reference Inspector. We used the name “Adobe URL.” (This name is for referenceonly, to help you keep track of stored URLs.)4 Press Enter or Return.214 LESSON 5 Creating Navigational Links 5 In the URL field of the Reference Inspector, change the URL text to the correct text for the URL to which you want to link. To link to the Adobe home page, for example, change “http://www.untitled.1/” to “http://www.adobe.com”. Make sure that you leave “http://” at the beginning of the URL. 6 Press Enter or Return. The URL is updated in the External tab. You can also add URLs to the External tab by dragging them from an open Web browser. For more information, see “Using site URLs and e-mail addresses” in the Adobe GoLive 6.0 User Guide. Now that the URL is added to the Exter ...