Chapter 24 Accessibility (Web site designers) 1241 (continued from previous page)

Chapter 24 Accessibility 1241 (continued from previous page) Computer speaks: You have just entered the Deitel home page. Please make a selection by speaking one of the following options: About us, Driving directions, Publications. User speaks: Driving directions Computer speaks: Directions to Deitel and Associates, Inc. We are located on Route 20 in Sudbury, Massachusetts, equidistant from route 128 and route 495. To repeat say yes. To go back to home, say no. Fig. 24.17 Fig. 24.1FiFig. 24.17g. 24.17 Fig. 24.17 Publication page of Deitel and Associates VoiceXML page. (Part 4 of 4.) A VoiceXML document contains a series of dialogs and subdialogs, resulting in spoken interaction between the user and the computer. The

and tags implement the dialogs. A formelement both presents information to the user and gathers data from the user. A menu element provides the user with list options and then transfers control to another dialog in response to the user s selection. Lines 7 9 (of Fig. 24.16) use element linkto create an active link to the home page. Attribute nextspecifies the URL to which the browser is directed when a user selects the link. Element grammarmarks up the text that the user must speak to select the link. In the link element, we navigate to the element containing id home when a user speaks the word home. Lines 11 13 use element linkto create a link to idendwhen a user speaks the word exit. Lines 17 25 create a form dialog using element form, which collects information from the user. Lines 18 22 present introductory text. Element block, which can exist only within a form element, groups together elements that perform an action or an event. Element emp indicates that a section of text should be spoken with emphasis. If the level of emphasis is not specified, then the default level moderate is used. Our example uses the default level. [Note: To specify an emphasis level, use the levelattribute. This attribute accepts the following values: strong, moderate, none and reduced.] The menuelement in line 27 enables users to select the page to which they would like to link. The choiceelement, which always is part of either a menuor a form, presents the options. The nextattribute indicates the page that is loaded when a user makes a selection. The user selects a choiceelement by speaking the text marked up between the tags into a microphone. In this example, the first and second choice elements in lines 42 43 transfer control to a local dialog (i.e., a location within the same document) when they are selected. The third choice element transfers the user to the document publications. vxml. Lines 28 34 use element promptto instruct the user to make a selection. Attribute count maintains a record of the number of times that a prompt is spoken (i.e., each time the computer reads a prompt, countincrements by one). The countattribute transfers control to another prompt once a certain limit has been reached. Attribute tim
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.

Leave a Reply