TYPE Attribute | type Property | DHTML中文手册 |
Sets or retrieves the type of transition to be applied.
dhtml语法
HTML <t:TRANSITIONFILTER TYPE = sType... > Scripting t:TRANSITIONFILTER.type [ = sType ]
DHTML可能的值
sType String that specifies or receives the name of the transition type that will be applied to renderable content. See the table below for possible values. The property is read/write. The property has no default value.
Remarks
This attribute is required and must be one of the transition families listed in the table below, or it must be an extended transition type provided by the user agent.
You can apply more than one transitionfilter to a given object. by doing this, you can apply more than one type of transition. this has the possible effect of multiple types of transitions occurring simultaneously to renderable content. see the example below.
if no subtype is specified, the default subtype associated with the transition type will be used. the type starwipe is an exception. it is required to explicitly include the subtype of "fivepoint" for this transition to work.
type associated subtype(s) starwipe fivepoint (this must be specified) barwipe lefttoright, toptobottom barndoorwipe vertical, horizontal iriswipe rectangle, diamond ellipsewipe circle clockwipe clockwisetwelve fanwipe centertop snakewipe toplefthorizontal spiralwipe topleftclockwise pushwipe fromleft slidewipe fromleft fade crossfade Note You can also use Cascading Style Sheets (CSS) transitions as values for TYPE. See type and subtype for more information.
Examples
This example demonstrates the different transition type values and the possible subtype values that can be used with those type values. in addition, the effects of changing various other attributes of the transitionfilter is also demonstrated.
this feature requires microsoft?internet explorer 6 or later. click the following icon to install the latest version. then reload this page to view the sample.This example shows three divs that have two different transitions applied to them simultaneously.
<HTML XMLNS:t = "urn:schemas-microsoft-com:time"> <HEAD> <STYLE> .time {behavior: url(#default#time2);} </STYLE> <?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" /> </HEAD> <BODY> <t:transitionfilter type="barWipe" id="tran1" dur="3" targetElement="firstDiv"/> <t:transitionfilter type="fade" id="tran1b" dur="3" targetElement="firstDiv"/> <t:transitionfilter type="snakeWipe" id="tran2" dur="3" targetElement="secondDiv"/> <t:transitionfilter type="barnDoorWipe" id="tran2b" dur="3" targetElement="secondDiv" from="0" to="1" CalcMode="linear" mode="in" /> <DIV STYLE="height:170px;"> <DIV CLASS="time" ID="firstDiv" STYLE="position:absolute; top:150px; left:20px; background-color:#3366CC; padding:10px; height:80; color:white;"> This div has fade and barwipe types applied. </DIV> <DIV CLASS="time" ID="secondDiv" STYLE="position:absolute; top:185px; left:60px; background-color:#FFCC00; padding:10px; height:80;"> This div has snakeWipe and barnDoorWipe types applied. </DIV> </DIV> </BODY> </HTML>
applies to
t:TRANSITIONFILTER
更多语法参考
introduction to html+time, Using HTML+TIME Transitions