XML technologies / CSS / Advanced websites with CSS / CSS property reference / cue
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The shorthand property cue plays short audio signals before and after an element in aural browsers. With cue-before and cue-after, the two sounds can also be defined separately.
Inherited: no
See also: cue-after, cue-before
Value
One or two URLs pointing to sound files. A single value is assigned to both cue-before and cue-after: the same sound plays before and after the HTML element. With two URLs, the first is assigned to cue-before and the second to cue-after.
Default value: none
Compatibility
CSS version: 2
Not supported by any current browser.
Example
The following style rule plays the file ding.wav in aural browsers before and after a div element:
div {
cue: url(/sounds/ding.wav);
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg