Chapter 5: Creating Custom Commands and Menu Commands


Chapter 5: "Creating Custom Commands and Menu Commands"

Command Framework.htm: HTML framework file with script tag in the <head> , including canAcceptCommand() , mainCommand() , commandButtons() , receiveArguments() , displayHelp() , and initializeUI() functions, with comments.

Menu Command Framework.htm: HTML framework file with script tag in the <head> , including mainCommand() , setMenuText() , getDynamicContent() , isCommandChecked() , receiveArguments() , commandButtons() , displayHelp() , and initializeUI() functions, with comments.

Workshop #1: Automatic Alt Text

Automatic Alt Text.htm: Command inserts alt text for all images in a document, except shim files and images that already have alt text. Same as completed workshop exercise.

AutomaticAltHelp.htm: Help file to be called from the Automatic Alt Text command.

Workshop #2: Make Uppercase

Make Uppercase.htm: Command that changes selected text to uppercase. Same as completed workshop exercise.

Workshop #3: Change Case

Change Case.htm: Command that can be used with two menu entries, Make Uppercase and Make Lowercase, changing the case of selected text as specified. Same as completed workshop exercise.

Menu Commands Practice

Set_Menu_Text.htm: Menu command file that generates a menu entry with dynamically determined text. Same as completed practice file.

Toggle_Check.htm: Menu command file that dynamically determines whether to include a check mark next to its menu entry. Same as completed practice file.

Select_Check.htm: Menu command file that creates a submenu of selections, one of which will be checked, depending on user selection. Same as completed practice file.

Dynamic_Test.htm: Menu command that creates a dynamically generated submenu, depending on the contents of the user document. Same as completed practice file.

Workshop #4: Select Images

Select_Images.htm: Menu command that creates a dynamically generated submenu that lists all the images in the current document, includes a check mark if one of those images is selected, and selects the appropriate image if the user chooses it from the submenu. Same as completed workshop exercise.



Dreamweaver MX Extensions
Dreamweaver MX Extensions
ISBN: 0735711828
EAN: 2147483647
Year: 2001
Pages: 141
Authors: Laura Gutman

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net