Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q5422 How do I play background sound using ACSS?

You are here: irt.org | FAQ | CSS | Q5422 [ previous next ]

While an element is spoken, you can use the play-during property to specify a sound to be played as a background.

Try this:

P {
   voice-family: Juliet, female
   volume: loud
   play-during: none
    }
P.sad {
   voice-family: Romeo, male
   volume: medium
   play-during: url(violin.aiff)
    }
P.happy
   voice-family: John, child
   volume: medium
   play-during: url(piano.wav)
    }

Feedback on 'Q5422 How do I play background sound using ACSS?'

©2018 Martin Webb