SMIL Sequence
- Previous Page SMIL Timing
- Next Page SMIL Parallel
序列元素
您可以使用
<seq> kanamantin yana da sauri da sauri, sauri na wanda a yi kai yi yi ne:
Attribute | Mutum | Bayani |
---|---|---|
begin | time | Wuri ko tana yana nuna kafin yankin yana nuna |
dur | time | Tayi wuri ko tana yana nuna |
repeatCount | number | Tayi wuri ko tana yana nuna |
Kai fannan koyan gaskiya SMIL da sauri da sauri, kai gudu CodeW3C.com SMIL kanamantin。
Example: Display Image Sequence
<html xmlns:t="urn:schemas-microsoft-com:time"> <head> <?import namespace="t" implementation="#default#time2"> <style>.t {behavior: url(#default#time2)}</style> </head> <body> <t:seq repeatCount="indefinite"> <img class="t" src="image1.jpg" dur="1s" /> <img class="t" src="image2.jpg" dur="1s" /> </t:seq> </body> </html>
Example: Display Text Sequence
<html xmlns:t="urn:schemas-microsoft-com:time"> <head> <?import namespace="t" implementation="#default#time2"> <style>.t {behavior: url(#default#time2)}</style> </head> <body> <t:seq repeatCount="indefinite"> <h2 class="t" dur="1s"> I will display for one second</h2> <h2 class="t" dur="2s"> I will display for two seconds</h2> <h2 class="t" dur="3s"> I will display for three seconds</h2> </t:seq> </body> </html>
- Previous Page SMIL Timing
- Next Page SMIL Parallel