XML technologies / CSS / Advanced websites with CSS / CSS property reference / cue-after, cue-before
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The properties cue-before and cue-after play a sound before and after the relevant element in aural browsers.
Inherited: no
See also: cue
Values
A URL pointing to a sound file. The default value none is also supported, but has no practical use.
Default value: none
Compatibility
CSS version: 2
Not supported by any current browser.
Example
The following style rules play, before all h1 elements, the sound ding.wav. For h1 elements in the class leise, no sound is played:
h1 {
cue-before: url(/sounds/ding.wav);
}
h1.leise {
cue-before: none;
}
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