SRC Attribute | src参数属性 | DHTML中文手册 |
Sets or retrieves the source URL of the media.
dhtml语法
HTML <ELEMENT SRC = sURL... > Scripting object.src [ = sURL ]
DHTML可能的值
sURL Stringthat specifies the URL of the media. The URL can be suffixed with the keyword #sami to include a .smi or .sami file type for media captioning. For more information, see Remarks. The property is read/write. The property has no default value.
Remarks
This property is read-only when applied to the playitem object.
html+time (timed interactive multimedia extensions) 2.0 supports media that includes captioning stream technology, called synchronized accessible media interchange (sami). the src attribute of a media element can use the #sami suffix to include captioning with media playback. for more information, see adding closed captions to digital media and Understanding SAMI 1.0.
Security Alert When the #sami suffix is specified with a valid URL for the SRC attribute of a media element, the contents of the SAMI stream display as text in that element. Likewise, the stream contents can be returned as the innertext of that element. for security reasons, developers should regard the sami stream as user input and take routine precautions against displaying unconfirmed user input as html rather than text. for more information, see security considerations: dynamic html and security considerations: dhtml and default behaviors.
是否符合公共标准
This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 .
Applies To
t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, playItem, t:REF, t:VIDEO
更多语法参考
Introduction to HTML+TIME