Professional Documents
Culture Documents
Cyber-Flex: Cyril J.E
Cyber-Flex: Cyril J.E
Cyber-Flex: Cyril J.E
08025614081
Cyril j.e
Cyber-flex
. . . . . . . . . .
for
The Document window..............................................................................................................................3 The Document toolbar ..............................................................................................................................4 The status bar.............................................................................................................................................5 The Insert bar.............................................................................................................................................5 The Property inspector...............................................................................................................................6 Dreamweaver workflow for creating websites..............................................................................................6 Planning your site.......................................................................................................................................6 Managing your site files............................................................................................................................7 Laying out web pages................................................................................................................................7 Adding content to pages............................................................................................................................7 Setting Up a Dreamweaver Site.....................................................................................................................8 About Dreamweaver sites..........................................................................................................................8 Understanding local and remote folder structure......................................................................................8 Creating a new blank document...................................................................................................................10 Creating a document based on a Dreamweaver design file........................................................................10 Saving a new document...............................................................................................................................10 Opening existing documents .......................................................................................................................11 About tables..................................................................................................................................................11 Table formatting precedence in HTML...................................................................................................11 About splitting and merging table cells...................................................................................................12 Inserting a table and adding content........................................................................................................12 Selecting a table.......................................................................................................................................13 Selecting rows or columns.......................................................................................................................13 Selecting cells..........................................................................................................................................13 Viewing and setting table, cell, row, and column properties .................................................................14 About Layout mode.....................................................................................................................................14 Drawing layout cells and tables...............................................................................................................15 Drawing a nested layout table..................................................................................................................16 About frames and framesets ........................................................................................................................16 Understanding how frames and framesets work ....................................................................................17 Understanding nested framesets .............................................................................................................18 Using a predefined frameset....................................................................................................................18 Designing a frameset ...............................................................................................................................19 About images................................................................................................................................................20 Inserting an image....................................................................................................................................20 Using image maps....................................................................................................................................21 Inserting client-side image maps.............................................................................................................21 Modifying an image map.........................................................................................................................22 Creating a rollover image........................................................................................................................22 Linking to a specific place in a document ..............................................................................................23 Creating an e-mail link.............................................................................................................................24 Creating null and script links...................................................................................................................24 Inserting and editing media objects.............................................................................................................25
. . . . . Introduction . . . Macromedia Dreamweaver 8 is a professional HTML editor for designing, coding, and developing .
websites, web pages, and web applications. Whether you enjoy the control of hand-coding HTML, or prefer to work in a visual editing environment, Dreamweaver provides you with helpful tools to enhance your web creation experience. This guide introduces you to using Macromedia Dreamweaver 8 if youre unfamiliar with any major aspect of it. The tutorials in this guide lead you through the process of creating a simple but functional website.
. . . Code and Design. view lets you view both Code view and Design view for the same document in a . single window. . . . . When the Document window has a title bar, the title bar displays the page title and, in parentheses, the
files path and filename. After the filename, Dreamweaver displays an asterisk if youve made changes that you havent saved yet. When the Document window is maximized in the integrated workspace layout (Windows only), it has no title bar; in that case the page title and the files path and filename appear in the title bar of the main workspace window. Additionally, when a Document window is maximized, tabs appear at the top of the Document window area showing the filenames of all open documents. To switch to a document, click its tab.
The following options appear in the Document toolbar: Show Code View displays only the Code view in the Document window. Show Code and Design Views displays Code view in part of the Document window and Design view in another part. When you select this combined view, the option Design View on Top becomes available in the View Options menu. Use this option to specify which view appears at the top of your Document window. Show Design View displays only the Design view in the Document window. Server Debug displays a report to help you debug the current ColdFusion page. The report includes errors, if any, in your page. Document Title allows you to enter a title for your document, to be displayed in the browsers title bar. If your document already has a title, it appears in this field. No Browser/Check Errors enables you to check cross-browser compatibility. Validate Markup lets you validate the current document or a selected tag. File Management displays the File Management pop-up menu. Preview/Debug in Browser allows you to preview or debug your document in a browser. Select a browser from the pop-up menu. Refresh Design View refreshes the documents Design view after you make changes in Code view. Changes you make in Code view dont automatically appear in Design view until you perform certain actions, such as saving the file or clicking this button.
4
. . . . View Options allows you to set options for Code view and Design view, including which view should . appear above the . other. . Options in the menu are for the current view: Design view, Code view, or both. . . use different visual aids to design your pages. Visual Aids lets you
The status bar
The status bar at the bottom of the Document window provides additional information about the document you are creating.
The tag selector shows the hierarchy of tags surrounding the current selection. Click any tag in the hierarchy to select that tag and all its contents. Click <body> to select the entire body of the document. To set the class or id attributes for a tag in the tag selector, right-click (Windows) or Control-click (Macintosh) the tag and select a class or ID from the context menu. The tag selector is the preferable method for selecting tags because it ensures that you are always selecting the tag with accuracy. The Hand tool lets you click the document and drag it in the Document window. Click the Select tool to disable the Hand tool. The Zoom tool and Set Magnification pop-up menu let you set a magnification level for your document.
Some categories have buttons with pop-up menus. When you select an option from a pop-up menu, it becomes the default action for the button. For example, if you select Image Placeholder from the Image buttons pop-up menu, the next time you click the Image button, Dreamweaver inserts an image placeholder. Anytime you select a new option from the pop-up menu, the default action for the button changes. The Insert bar is organized in the following categories: The Common category enables you to create and insert the most commonly used objects, such as images and tables. The Layout category enables you to insert tables, div tags, layers, and frames. You can also you choose among three views of tables: Standard (default), Expanded Tables, and Layout. When Layout mode is selected, you can use the Dreamweaver layout tools: Draw Layout Cell and Draw Layout Table. The Forms category contains buttons for creating forms and inserting form elements.
5
. . . . The Text category enables you to insert a variety of text- and list-formatting tags, such as b, em, p, h1, . . and ul. . . . The HTML category enables you to insert HTML tags for horizontal rules, head content, tables, frames,
and scripts. Server-code categories are available only for pages that use a particular server language, including ASP, ASP.NET, CFML Basic, CFML Flow, CFML Advanced, JSP, and PHP. Each of these categories provides server-code objects that you can insert in Code view. The Application category enables you to insert dynamic elements such as recordsets, repeated regions, and record insertion and update forms. The Flash elements category enables you to insert Macromedia Flash elements. The Favorites category enables you to group and organize the Insert bar buttons you use the most in one common place.
The Property inspector is at the bottom of the workspace by default, but you can dock it at the top of the workspace if you want. Or, you can make it a floating panel in the workspace.
. . . . Managing your site files . . . The Dreamweaver Files and Assets panels make it easy for you to manage your site files. . .
In the Dreamweaver Files panel youll find many tools to help you manage your site, transfer files to and from a remote server, set up a Check In/Check Out process to prevent files from being overwritten, and synchronize the files on your local and remote sites. Use the Assets panel to easily organize the assets in a site; you can then drag most assets directly from the Assets panel into a Dreamweaver document You can use Dreamweaver to manage aspects of your Contribute sites.
You can use Dreamweaver layers or CSS positioning styles to create your layout. The table tools and Layout mode in Dreamweaver let you quickly design web pages by drawing and then rearranging the page structure. If you want to display multiple documents at once in a web browser, you can lay out documents using frames. Dreamweaver templates enable you to easily apply reusable content and page designs to your site. You can create new pages based on a Dreamweaver template, then update the layout of those pages automatically when the template changes.
Dreamweaver page creation features enable you to specify web page properties such, as page titles, background images and colors. In addition, Dreamweaver provides tools to help you maximize website performance, and to test pages to ensure compatibility with different web browsers. Type directly in a Dreamweaver document, or import text from other documents, then format the text using the Dreamweaver Property inspector. You can also easily create your own Cascading Style Sheets. Insert images, including rollover images, image maps, and Fireworks sliced images, and use alignment tools to position images in a page. You can also resize images directly in Dreamweaver. With Dreamweaver you can create standard HTML links, including anchor links and e-mail links, or easily set up graphical navigation systems, such as jump menus and navigation bars. Insert other types of media in a web page, such as Flash, Shockwave, and QuickTime movies, sound, and applets.
. . . . Use behaviors to perform tasks in response to specific events, such as highlighting a button when . the visitor.passes the pointer over it, validating a form when the visitor clicks the Submit button, . . or opening a second browser window when the main page is finished loading. .
. . . . . . . . .
If the structure of your remote folder doesnt match the structure of your local folder, Dreamweaver uploads your files to the wrong place and the files might not be visible to site visitors. Also, your image and link paths might be broken. The remote root directory must exist before Dreamweaver can connect to it. If you dont have a root directory for your remote folder, create one or ask the servers administrator to create one for you. Even if you intend to edit only part of the remote site, you must locally duplicate the entire structure of the relevant branch of the remote site, from the remote sites root folder down to the files you want to edit. For example, if your remote sites root folder, named public_html, contains two folders, Project1 and Project2, and you want to work only on the HTML files in Project1, you dont need to download the files in Project2, but you must map your local root folder to public_html, not to Project1.
To set up a Dreamweaver site: 1. Select Site > Manage Sites. The Manage Sites dialog box appears. 2. Click the New button. The Site Definition dialog box appears. 3. Do one of the following:
o o
Click the Basic tab to use the Site Definition Wizard, which steps you through the setup process. Click the Advanced tab to use the Advanced settings, which enable you to set up local, remote, and testing folders individually, as necessary.
o o
. . . . For the Site Definition Wizard, answer the questions on each screen, then click Next to . . advance through the setup process or click Back to return to a previous screen. . . . For Advanced settings, complete the Local Info category, the RemoteInfo category, and
the Testing Server category, as necessary .
10
. . . . . Opening existing documents . .you In Dreamweaver, . can open an existing web page or text-based document, even if it wasnt created in .
Dreamweaver. You can open the document and use Dreamweaver to edit it in either Design view or Code view. If the document you open is a Microsoft Word file that was saved as an HTML document, you can use the Cleanup Word HTML command to remove the extraneous markup tags that Word inserts into HTML files. For more information, You can also open non-HTML text files, such as JavaScript files, XML files, CSS style sheets, or text files saved by word processors or text editors. To open an existing file: 1. Select File > Open. 2. Navigate to and select the file you want to open. 3. Click Open.
About tables
Tables are a powerful tool for presenting tabular data and for laying out text and graphics on an HTML page. A table consists of one or more rows; each row consists of one or more cells. Although columns arent usually explicitly specified in HTML code, Dreamweaver enables you to manipulate columns as well as rows and cells. Dreamweaver displays the table width and the column width for each table column when the table is selected or when the insertion point is in the table. Next to the widths are arrows for the table header menu and the column header menus. Use the menus for quick access to some common table-related commands. You can enable or disable the widths and menus as necessary. If you do not see a width for the table or for a column, then that table or column does not have a specified width in the HTML code. If two numbers appear, then the visual width as it appears in Design view doesnt match the width specified in the HTML code. This can happen when you resize a table by dragging its lower-right corner or when you add content to a cell thats larger than its set width. For example, if you set a columns width to 200 pixels, then add content that stretches the width to 250 pixels, two numbers appear for that column: 200 (the width specified in the code) and (250) in parentheses (the visual width of the column as its rendered on your screen).
11
. . . . For example, if you set the background color for a single cell to blue, then set the background color of . the entire table to.yellow, the blue cell does not change to yellow, since cell formatting takes precedence . . over table formatting. .
About splitting and merging table cells
You can merge any number of adjacent cells--as long as the entire selection is a line or a rectangle of cells--to produce a single cell that spans several columns or rows. You can split a cell into any number of rows or columns, regardless of whether it was previously merged. Dreamweaver automatically restructures the table (adding any necessary colspan or rowspan attributes) to create the specified arrangement. In the following illustration, the cells in the middle of the first two rows have been merged into a single cell that spans two rows.
Select Insert > Table. In the Common category of the Insert bar, click the Table button.
3. Complete the dialog box. 4. Click OK. The table appears in the document.
12
. . . . Selecting a table . . There are several . .ways you can select an entire table at once. .
To select an entire table, do one of the following:
Click the upper-left corner of the table, anywhere on the top or bottom edge of the table, or on a row or columns border.
Click in a table cell, then select the <table> tag in the tag selector at the lower-left corner of the Document window. Click in a table cell, then select Modify > Table > Select Table. Click in a table cell, click the table header menu, then select Select Table. Selection handles appear on the selected tables lower and right edges.
Selecting cells
You can select a single cell, a line or block of cells, or nonadjacent cells. To select a single cell, do one of the following:
Click in the cell, then select the <td> tag in the tag selector at the lower-left corner of the Document window. Control-click (Windows) or Command-click (Macintosh) in the cell. Click in the cell, then select Edit > Select All. Drag from a cell to another cell. Click in one cell, Control-click (Windows) or Command-click (Macintosh) in the same cell to select it, then Shift-click another cell.
13
. . . All of the . .cells within the linear or rectangular region defined by the two cells are selected. . . To select nonadjacent cells: . . Control-click (Windows) or Command-click (Macintosh) the cells, rows, or columns you
want to select. If each cell, row, or column you Control-click or Command-click isnt already selected, its added to the selection. If it is already selected, its removed from the selection.
You can lay out your page using several layout cells within one layout table, which is the most common approach to web-page layout, or you can use multiple, separate layout tables for more complex layouts. Using multiple layout tables isolates sections of your layout, so that they arent affected by changes in other sections. You can also nest layout tables, by placing a new layout table inside an existing layout table. This structure enables you to simplify the table structure when the rows or column in one part of the layout dont line up with the rows or columns in another part of the layout. For example, using nested layout tables you could easily create a two-column layout with four rows in the left column and three rows in the right column.
14
. . . . Drawing layout cells and tables . . . You can draw layout cells and tables on your page in Layout mode. When you draw a layout cell that . . isnt inside a layout table, Dreamweaver automatically creates a layout table as a container for the cell. A
layout cell cannot exist outside of a layout table. When Dreamweaver automatically creates a layout table, the table initially appears to fill the entire Design view, even if you change the size of your Document window. This full-window default layout table allows you to draw layout cells anywhere in Design view. You can set the table to a specific size by clicking the table border, then dragging the tables resize handles. When you move the pointer over a layout cell, Dreamweaver highlights it. You can enable or disable highlighting or change the highlight color in preferences. To draw a layout cell: 1. Make sure you are in Layout mode 2. In the Layout category of the Insert bar, click Draw Layout Cell button. 3. Position the pointer where you want to start the cell on the page, and then drag to create the layout cell. 4. If you draw the cell close to the edge of the layout table, cell edges automatically snap to the edges of the containing layout table. To temporarily disable snapping, hold down Alt (Windows) or Option (Macintosh) while drawing the cell. The cell appears outlined in blue on your page. To draw a layout table: 1. Make sure you are in Layout mode. 2. In the Layout category of the Insert bar, click the Draw Layout Table button. 3. Position the pointer on the page, then drag to create the layout table. 4. You can create a layout table in an empty area of your page layout, around existing layout cells and tables, or nested inside an existing layout table. If your page contains content, and you want to add a layout table in an empty area of your page layout, you can draw a new layout table only below the bottom of the existing content. The Layout table appears outlined in green on your page. To change highlighting preferences for layout cells: 1. Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh). 2. Select Highlighting from the category list on the left. 3. Make either of the following changes:
o
To change the highlighting color, click the Mouse-over color box, then select a highlight color using the color picker (or enter the hexadecimal value for the highlight color in the text box). To enable or disable highlighting, select or deselect the Show checkbox for Mouse-Over.
4. Click OK.
15
. . . . Drawing a nested layout table . . . You can draw a layout table inside another layout table, to create a nested table. The cells inside a nested . . table are isolated from changes made to the outer table; for example, when you change the size of a row
or column in the outer table, the cells in the inner table dont change size. You can insert multiple levels of nested tables. A nested layout table cannot be larger than the table that contains it.
To draw a nested layout table: 1. Make sure you are in Layout mode. 2. In the Layout category of the Insert bar, click the Draw Layout Table button. 3. Point to an empty (gray) area in an existing layout table, and then drag to create the nested layout table. To draw a layout table around existing layout cells or tables: 1. Make sure you are in Layout mode. 2. In the Layout category of the Insert bar, click the Draw Layout Table button. 3. Drag to draw a rectangle around a set of existing layout cells or tables. A new nested layout table appears, enclosing the existing cells or tables.
16
. . . . Understanding how frames and framesets work . . . A frame is a region in a browser window that can display an HTML document independent of whats . . being displayed in the rest of the browser window. A frameset is an HTML file that defines the layout
and properties of a set of frames. To view a set of frames in a browser, enter the URL of the frameset file; the browser then opens the relevant documents to display in the frames. The frameset file for a site is often named index.html, so that it displays by default if a visitor doesnt specify a filename. The following example shows a frame layout consisting of three frames: one narrow frame on the side that contains a navigation bar, one frame that runs along the top, containing the logo and title of the website, and one large frame that takes up the rest of the page and contains the main content. Each of these frames displays a separate HTML document.
In this example, the document displayed in the top frame never changes as the visitor navigates the site. The side frame navigation bar contains links; clicking one of these links changes the content of the main content frame, but the contents of the side frame itself remain static. The main content frame on the right displays the appropriate document for whichever link the visitor clicks on the left. Note that a frame is not a file. Its easy to think of the document that currently appears in a frame as an integral part of the frame, but the document isnt actually part of the frame. The frame is a container that holds the document--any frame can display any document. A site that appears in a browser as a single page comprising three frames actually consists of at least four separate HTML documents: the frameset file, plus the three documents containing the content that initially appears in the frames. When you design a page using framesets in Dreamweaver, you must save each of these four files in order for the page to work properly in the browser. Advantages to using frames include the following:
A visitors browser doesnt need to reload the navigation-related graphics for every page. Each frame has its own scroll bar (if the content is too large to fit in a window), so a visitor can scroll the frames independently. For example, a visitor who scrolls down to the bottom of a long page of content in a frame doesnt need to scroll back up to the top to use the navigation bar if the navigation bar is in a different frame.
17
. . . Disadvantages to . .using frames include the following: . . Precise graphical alignment of elements in different frames can be difficult. . . Testing the navigation can be time-consuming.
The URLs of the individual framed pages dont appear in browsers, so it can be difficult for a visitor to bookmark a specific page (unless you provide server code that enables them to load a framed version of a particular page).
The Insert bar enables you to create a frameset and display the current document in one of the new frames. The New Document dialog creates a new empty frameset.
To create a predefined frameset and display an existing document in a frame: 1. Place the insertion point in a document. 2. Do one of the following:
o o
Select a predefined frameset from the Insert > HTML > Frames submenu. In the Layout category of the Insert bar, click the drop down arrow on the Frames button, then select a predefined frameset.
18
. . . . The frameset icons provide a visual representation of each frameset as applied to the current . . document. The blue area of a frameset icon represents the current document, and the white areas . . represent frames that will display other documents. .
The Frame Tag Accessibility Attributes dialog box appears, if you have set up Dreamweaver to prompt you for frame accessibility attributes. 3. If the Frame Tag Accessibility Attributes dialog box appears, complete the dialog box for each frame, then click OK. To create a new empty predefined frameset: 1. Select File > New. 2. In the New Document dialog box, select the Framesets category. 3. Select a frameset from the Framesets list. 4. Click Create. The frameset appears in your document and the Frame Tag Accessibility Attributes dialog box appears, if you have activated the dialog box in Preferences 5. If the Frame Tag Accessibility Attributes dialog box appears, complete the dialog box for each frame, then click OK.
Designing a frameset
You can design your own frameset in Dreamweaver by adding "splitters" to the window. To create a frameset:
Select Modify > Frameset, then select a splitting item (such as Split Frame Left or Split Frame Right) from the submenu. Dreamweaver splits the window into frames. If you had an existing document open, it appears in one of the frames.
To split the frame where the insertion point is, select a splitting item from the Modify > Frameset submenu. To split a frame or set of frames vertically or horizontally, drag a frame border from the edge of the Design view into the middle of the Design view. To split a frame using a frame border that isnt at the edge of the Design view, Alt-drag (Windows) or Option-drag (Macintosh) a frame border.
19
. . . To divide . frame into four frames, drag a frame border from one of the corners of the Design .a view into . middle of a frame. the . . . To delete a frame:
Drag a frame border off the page or to a border of the parent frame. If theres unsaved content in a document in a frame thats being removed, Dreamweaver prompts you to save the document.
To set approximate sizes for frames, drag frame borders in the Document windows Design view. To specify exact sizes, and to specify how much space the browser allocates to a row or column of frames when the browser window size doesnt allow the frames to display at full size, use the Property inspector
About images
Many different types of graphic file formats exist, but three graphic file formats are generally used in web pages--GIF, JPEG, and PNG. Currently, GIF and JPEG file formats are the best supported and can be viewed by most browsers. PNG files are best suited for almost any type of web graphic due to their flexibility and small file size; however, the display of PNG images is only partially supported in Microsoft Internet Explorer (4.0 and later browsers) and Netscape Navigator (4.04 and later browsers). So unless you are designing for a specific target audience using a browser that supports the PNG format, use GIFs or JPEGs for broader accessibility. GIF (Graphic Interchange Format) files use a maximum of 256 colors, and are best for displaying noncontinuous-tone images or those with large areas of flat colors, such as navigation bars, buttons, icons, logos, or other images with uniform colors and tones. JPEG (Joint Photographic Experts Group) file format is the superior format for photographic or continuous-tone images, because JPEG files can contain millions of colors. As the quality of a JPEG file increases, so does the file size and the file download time. You can often strike a good balance between the quality of the image and the file size by compressing a JPEG file. PNG (Portable Network Group) file format is a patent-free replacement for GIFs that includes support for indexed-color, gray scale, and true-color images, and alpha channel support for transparency. PNG is the native file format of Macromedia Fireworks. PNG files retain all the original layer, vector, color, and effects information (such as drop shadows), and all elements are fully editable at all times. Files must have the .png file extension to be recognized as PNG files by Dreamweaver.
Inserting an image
When you insert an image into a Dreamweaver document, Dreamweaver automatically generates a reference to the image file in the HTML source code. To ensure that this reference is correct, the image file must be in the current site. If it is not in the current site, Dreamweaver asks whether you want to copy the file into the site. You can also insert images dynamically. Dynamic images are those images that change often. For example, advertising banner rotation systems need to randomly select a single banner from a list of potential banners, and then dynamically display the selected banners image when a page is requested.
20
. . . . To insert an image: . . . 1. Place the insertion point where you want the image to appear in the Document window, then do . one of the.following:
o o o o o o
In the Common category of the Insert bar, click the Image icon. In the Common category of the Insert bar, drag the Image icon to the Document window (or to the Code view window if you are working in the code). Select Insert > Image. Drag an image from the Assets panel (Window > Assets) to the desired location in the Document window; then skip to step 3. Drag an image from the Site panel to the desired location in the Document window; then skip to step 3. Drag an image from the desktop to the desired location in the Document window; then skip to step 3. Select File System to choose a graphic file. Select Data Source to choose a dynamic image source.
3. Browse to select the image or content source you want to insert. Click OK. 4. The image appears in your document. 5. In the Property inspector (Window > Properties), set properties for the image.
Select the circle tool and drag the pointer over the image to create a circular hotspot. Select the rectangle tool and drag the pointer over the image to create a rectangular hotspot. Select the polygon tool and define an irregularly shaped hotspot by clicking once for each corner point. Click the arrow tool to close the shape.
After you create the hotspot, the hotspot Property inspector appears.
21
5. 6.
. . . Complete . hotspot Property inspector. .the . . When you finish mapping the image, click a blank area in the document to change the . . Property inspector.
Shift-click the other hotspots you want to select. Press Control+A (Windows) or Command+A (Macintosh) to select all of the hotspots.
To move a hotspot: 1. Use the pointer hotspot tool to select the hotspot you want to move. 2. Do one of the following:
o o o
Drag the hotspot to a new area. Use the Shift + arrow keys to move a hotspot by 10 pixels in the selected direction. Use the arrow keys to move a hotspot by 1 pixel in the selected direction.
To resize a hotspot: 1. Use the pointer hotspot tool to select the hotspot you want to resize. 2. Drag a hotspot selector handle to change the size or shape of the hotspot.
In the Insert bar, select Common, then click the Rollover Image icon.
22
o o
. . . In.the Insert bar, select Common, then drag the Rollover Image icon to the desired . . location in the Document window. . . . Select Insert > Interactive Images > Rollover Image.
The Insert Rollover Image dialog box appears.
3. Complete the dialog box. Click OK. 4. Select File > Preview in Browser or press F12. You cannot see the effect of a rollover image in Design view. 5. In the browser, move the pointer over the original image. The display should switch to the rollover image.
Select Insert > Named Anchor. Press Control+Alt+A (Windows) or Command+Option+A (Macintosh). In the Common category of the Insert bar, click the Named Anchor button.
The Named Anchor dialog box appears. 3. In the Anchor Name text box, type a name for the anchor, and click OK. The anchor marker appears at the insertion point. To link to a named anchor: 1. In the Document windows Design view, select text or an image to create a link from. 2. In the Link text box of the Property inspector, type a number sign (#) and the name of the anchor. For example:
o o
To link to an anchor named "top" in the current document, type #top. To link to an anchor named "top" in a different document in the same folder, type filename.html#top.
To link to a named anchor using the point-to-file method: 1. Open the document containing the named anchor you want. 2. In the Document windows Design view, select text or an image you want to link from. (If this is another open document, you must switch to it.)
23
3.
. . . Do one of.the following: . . . o Click the Point-to-File icon to the right of the Link text box in the Property inspector and . . drag it to the anchor you want to link to: either an anchor within the same document or an
anchor in another open document.
o
Shift-drag in the Document window from the selected text or image to the anchor you want to link to: either an anchor within the same document or an anchor in another open document.
Select Insert > E-mail Link. In the Common category of the Insert bar, click the Insert E-mail Link button.
3. Complete the dialog box. 4. Click OK. To create an e-mail link using the Property inspector: 1. Select text or an image in the Document windows Design view. 2. In the Link text box of the Property inspector, type mailto: followed by an e-mail address. Do not type any spaces between the colon and the e-mail address. For example, type mailto:jlydon@macromedia.com.
. . . . To create a script link: . . . 1. Select text, an image, or an object in the Document windows Design view. . . 2. In the Link text box of the Property inspector, type javascript: followed by some JavaScript
code or a function call. For example, typing javascript:alert('This link leads to the index') in the Link text box produces a link that, when clicked, displays a JavaScript alert box with the message "This link leads to the index".
In the Common category of the Insert bar, click the Media button and select the button for the type of object you want to insert.
o o
Select the appropriate object from the Insert > Media submenu. If the object you want to insert is not a Flash, Shockwave, Applet, or ActiveX object, use the Netscape Navigator plug-in button (the puzzle piece icon in the Insert bar) to insert it.
In most cases, a dialog box appears letting you select a source file and specify certain parameters for the media object. 3. Complete the Select File or Insert Flash dialog box. 4. Click OK. The Object Tag Accessibility Attributes dialog box appears if you have activated the dialog box in Preferences. 5. If the Object Tag Accessibility Attributes dialog box appears, complete the dialog box and click OK.
25
. . . . . . . . .
26