MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 316

  • 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 315
316 Behaviors
displayHelp()
Description
If this function is defined, a Help button appears below the OK and Cancel buttons in the
Parameters dialog box. This function is called when the user clicks the Help button.
Arguments
None.
Returns
Dreamweaver expects nothing.
Example
// the following instance of displayHelp() opens
// in a browser a file that explains how to use
// the extension.
function displayHelp(){
var myHelpFile = dw.getConfigurationPath() +
'/ExtensionsHelp/superDuperHelp.htm';
dw.browseDocument(myHelpFile);
}
deleteBehavior()
Description
This function undoes any edits that the applyBehavior() function performed.
Arguments
applyBehaviorString
This argument is the string that the applyBehavior() function returns.
Returns
Dreamweaver expects nothing.
NOTE
Dreamweaver automatically deletes the function declaration and the event handler that
are associated with a behavior when the user deletes the behavior in the Behaviors
panel. It is necessary to define the deleteBehavior() function only if the
applyBehavior() function performs additional edits on the user’s document (for
example, if it inserts a tag).
Zobrazit stránku 315
1 2 ... 311 312 313 314 315 316 317 318 319 320 321 ... 503 504

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

Žádné komentáře