MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 153

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 152
A simple insert object example 153
To separate the HTML object definition file from the supporting JavaScript
functions:
1. Create a new blank file.
2. Paste all the JavaScript functions into the file.
3. Remove the functions from Strikethrough.htm, and add the JavaScript filename to the src
attribute of the script tag, as shown in the following example:
<html>
<head>
<title>Strikethrough</title>
<script language="javascript" src="Strikethrough.js">
</script>
</head>
<body>
</body>
</html>
4.
Save the Strikethrough.htm file.
5. Save the file that now contains the JavaScript functions as Strikethrough.js in the
Configuration/Objects/Text folder.
Creating the image
To create the image for the Insert bar:
1. Create a GIF image (18 x 18 pixels), as shown in the following figure:
2. Save the file as Strikethrough.gif in the Configuration/Objects/Text folder.
Editing the insertbar.xml file
Next, you need to edit the insertbar.xml file so Dreamweaver can associate these two items
with the Insert bar interface.
The code within the insertbar.xml file identifies all the existing objects on the Insert bar
Each category tag in the XML file creates a category in the interface.
Each menubutton tag creates a pop-up menu on the Insert bar.
NOTE
Before you edit the insertbar.xml file, you might want to copy the original one as
insertbar.xml.bak, so you have a backup.
Seitenansicht 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare