You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > opVoiceStress
opVoiceStress style property | XvVoiceStress style property
opVoiceStress | ||||||
XvVoiceStress |
Specifies or retrieves the strength of emphasis to be applied.
Same as the voice-stress property in the CSS3 declaration.
The opVoiceStress and XvVoiceStress properties are equivalent in Opera.
Syntax:
You can find the related objects in the Supported by objects section below.
XvVoiceStress: | This property is read/write. |
opVoiceStress: | This property is read/write. |
CSS page for this property: -op-voice-stress |
Possible values:
The type of this property is string.
One of the following values:
Takes the value of this property from the computed style of the parent element. | |||||||
Apply a moderate emphasis. | |||||||
Inhibit the synthesizer from emphasizing words it would normally emphasize. | |||||||
Effectively the opposite of emphasizing a word. | |||||||
Apply a strong emphasis. |
Default: moderate.
Example HTML code 1:
This example illustrates the use of the -xv-voice-stress property:
|
||||
<head> <style> .example { -xv-voice-stress: strong; } </style> </head> <body> <p class="example">Apply a strong emphasis.</p> Select the text in the document, right click and select speak </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the XvVoiceStress property in JavaScript:
|
||||
<head> <style> #example { -xv-voice-stress: strong; } </style> <script type="text/javascript"> function ChangeStress (selectTag) { var example = document.getElementById ("example"); // Returns the index of the selected option var whichSelected = selectTag.selectedIndex; // Returns the text of the selected option var selectState = selectTag.options[whichSelected].text; if ('XvVoiceStress' in example.style) { example.style.XvVoiceStress = selectState; // or opVoiceStress } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> Normal voice <p class="example">Select the text in the document, right click and select speak</p> Normal voice <select onchange="ChangeStress (this);" size="3"> <option>moderate</option> <option selected="selected">strong</option> <option>reduced</option> </select> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
CSSStyleDeclaration, htmlElement.currentStyle, htmlElement.style
HTML elements:
a, abbr, acronym, address, b, bdo, big, blink, blockquote, body, button, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, input:button, input:file, input:password, input:reset, input:submit, input:text, ins, isindex, kbd, label, legend, li, marquee, menu, ol, optgroup, option, p, plaintext, pre, q, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var, xmp
Related pages:
XvInterpretAs
opPhonemes
XvVoiceBalance
XvVoiceDuration
opVoicePitch
opVoicePitchRange
opVoiceRate
opVoiceVolume
cue
cueAfter
cueBefore
pause
pauseAfter
pauseBefore
rest
restAfter
restBefore
speak
voiceFamily
opPhonemes
XvVoiceBalance
XvVoiceDuration
opVoicePitch
opVoicePitchRange
opVoiceRate
opVoiceVolume
cue
cueAfter
cueBefore
pause
pauseAfter
pauseBefore
rest
restAfter
restBefore
speak
voiceFamily
External links:
User Contributed Comments