onscriptcommand Event?deprecated) | DHTML中文手册 |
fires when the microsoft?windows media?player control receives a synchronized command or url.
dhtml语法
inline html <element onscriptcommand = "handler" ... > All platforms Event property object.onscriptcommand = handler JScript only object.onscriptcommand = GetRef("handler") Visual Basic Scripting Edition (VBScript) 5.0 or later only Named script <SCRIPT FOR = object EVENT = onscriptcommand> Internet Explorer only
Event Information
Bubbles No Cancels No To invoke Open a document in the browser that plays a streaming media file affected by HTML+TIME. The streaming media file (.asf) must contain embedded commands, or triggers, in the stream. Default action Calls the associated event handler.
Available Properties
remarks
this event is deprecated.
this event fires when the windows media player is used with one of the html+time media elements, including t:audio, t:img, t:media, and t:video.
commands can be embedded among the sounds and images of an .asf file. a command consists of a pair of unicode strings associated with a designated time in the stream. when the stream reaches the time associated with the command, the windows media player control fires this event and sets two properties on the event object, the sctype property and the param property. the sctype property specifies the type of command, and the param property specifies the command value. the sctype property determines how the windows media player control processes the command parameter.
any type of command can be embedded in an asf stream to be handled by this event. for example, if the windows media player encounters a url trigger in the .asf file, the sctype property is set to url and the param property is set to url (http://...).
in addition to the onscriptcommand event, a second event is fired in response to the .asf trigger. the event prefix on is added to the front of the string specified in the sctype property, and that event is fired. for example, suppose a stream defines a trigger with the sctype property set to the string mytype. in this case, the custom onmytype event fires at that point in the stream with the onscriptcommand.
是否符合公共标准
This event is defined in HTML+TIME (Timed Interactive Multimedia Extensions) .
Applies To
t:AUDIO, t:IMG, t:MEDIA, t:VIDEO
更多语法参考
Introduction to HTML+TIME