• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. Aural Cascading Style Sheets > Cue Sub-Set of Properties

21.4. Cue Sub-Set of Properties

Just as there is a sub-set of pause-related properties, so too is there a sub-set of cue-related properties. In this case, however, instead of attaching a pause value to a Web element, the cue essentially adds the equivalent of a “sound effect.” If you wanted to add the sound of a creaking door, a doorbell, a ghostly wail or anything else you can think of, you can do so using the set of cue properties. There are three properties in this sub-set of properties: cue-before, cue-after and cue. The cue-before property is designed to add a sound effect before a specific Web element, and the cue-after property adds a sound effect after a given Web element. The shortcut property cue works in much the same way as the pause property, in that it can take two URL values. If two values are specified, the first sound file is played before the Web element, and the second sound file reference is played after it. If only one sound file is specified, the same sound is played before and after the Web element. Note: when a cue property is used, the sound appears either before or after the text being read by the browser, not along with it.

The cue properties can take any one of two different values: a URL that points to a sound file the browser is capable of playing back, and the named property inherit.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint