The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Aural |
| Previous Style: pitch-range | Next Style: position |


play-during

Specifies a sound to be played when an element is rendered aurally.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

See Also:

cue, cue-after, cue-before

Possible Values:

auto
The sound specified by the containing element's play-during property continues to play.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

mix
The element's sound is played along with the sound specified by the containing element's play-during property.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • If you omit this value, the element's sound plays by itself.

none
No sound is played, not even the sound specified by the containing element's play-during property.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

repeat
The element's sound will be repeated for as long as it takes the element to be rendered aurally.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

[url]
The file name or full URL of the sound.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • Use the following syntax:

    url(address)

    Here, address is the name or URL of the sound file.

Example:
<BODY STYLE="play-during: url(muzak.au) repeat">

| Index | Current Category: Aural |
| Previous Style: pitch-range | Next Style: position |