MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 159

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 158
A simple insert object example 159
To edit insertbar.xml:
1. Find the following line of code near the beginning of the file:
<insertbar xmlns:MMString="http://www.macromedia.com/schemes/data/
string/">
The insertbar tag defines the beginning of all the Insert bar contents.
2. After that line, add a new category tag for the Editorial category you want to create, giving
it unique ID, name, and folder attributes, and then add a closing
category tag, as shown
in the following example:
<category id="DW_Insertbar_Editorial" name="Editorial"
folder="Editorial">
</category>
3.
Reload extensions. For information on reloading extensions, see “Reloading extensions”
on page 104.
The Editorial category appears on the Insert bar:
4. Within the opening and closing category tags, add the pop-up menu by using the
menubutton tag and the following attributes, including a unique ID.
<menubutton id="DW_Insertbar_Markup" name="markup"
image="Editorial\Strikethrough.gif" folder="Editorial">
For more information about attributes, see “Insert bar definition tag attributes
on page 144.
5. Add the objects for the new pop-up menu using the button tag, as follows:
<button id="DW_Editorial_Strikethrough"
image="Editorial\Strikethrough.gif"
file="Editorial\Strikethrough.htm"/>
Zobrazit stránku 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 503 504

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

Žádné komentáře