SMIL Sequence

- 最常用的 SMIL 元素 - 定义序列。

序列元素

元素可定义序列。 元素中的子元素依次显示在序列中。

您可以使用 元素来定义要显示的图像列表、段落列表、视频列表,或任何其他的元素。

<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>

TIY

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>

TIY