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 TextAutomatic 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 UppercaseMake Uppercase.htm: Command that changes selected text to uppercase. Same as completed workshop exercise. Workshop #3: Change CaseChange 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 PracticeSet_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 ImagesSelect_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. ![]() |