MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Uživatelský manuál Strana 8

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 28
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 7
8
To create a simple object:
1 In Dreamweaver, choose File > New.
The New Document dialog box appears.
2 In the Category column on the left, choose Other.
A list of file types appears in the center column of the dialog box.
3 Select Text from the list of file types and click Create.
A new blank text document appears.
4 Add the code and text that you want this object to insert into your documents; for example,
type the following:
<p>
&copy; 2002 ZII Productions, Inc.<BR>
All Rights Reserved
</p>
5
Save the file.
If you want the new object to appear in one of the existing Insert bar tabs, save it in one of the
subfolders of the Objects folder. For information on placing the object in a particular position
in the tab or on creating a new tab, see “Modifying the Insert bar” on page 5.
6 In a graphics or image-editing application (such as Macromedia Fireworks), create an 18 x 18
pixel GIF image that will serve as the icon for your object in the Insert bar.
If you create a larger image, Dreamweaver automatically scales it to 18 x 18 pixels. If you do
not create an icon for your object, Dreamweaver displays a generic object icon for your object
in the Insert bar.
7 Give your icon the same filename as your object file, but use .gif as the extension; then save the
icon in the same directory as the object file.
For example, if your object is called Copyright_ZII.htm and you saved it in the Common
directory, name your icon Copyright_ZII.gif and save it in the Common directory as well.
8 Restart Dreamweaver, or reload extensions, to use your new object.
The object appears at the bottom of the Insert menu as well as on the Insert bar. For
information on reloading extensions, see “Modifying the Insert bar” on page 5.
Changing FTP mappings
The FTPExtensionMap.txt file (Windows) and the FTPExtensionMapMac.txt file (Macintosh)
map filename extensions to FTP transfer modes (ASCII or BINARY).
Each line in each of the two files includes a filename extension (such as GIF) and either the word
ASCII or the word BINARY, to indicate which of the two FTP transfer modes should be used
when transferring a file with that extension. On the Macintosh, each line also includes a creator
code (such as DmWr) and a file type (such as TEXT); when you download a file with the given
filename extension, Dreamweaver assigns the specified creator and file type to the file.
If a file that youre transferring doesnt have a filename extension, Dreamweaver uses the BINARY
transfer mode.
Note: Dreamweaver cannot transfer files in macbinary mode. If you need to transfer files in macbinary mode, you
must use another FTP client.
Zobrazit stránku 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 27 28

Komentáře k této Příručce

Žádné komentáře