SMIL In HTML

Internet Explorer ສາມາດດຳເນີນ SMIL ໃນບັນຊີ HTML

ການດຳເນີນ SMIL ໃນ IE

ດ້ວຍ Internet Explorer 5.5 ຫລືຫນັງນັ້ນ ທັງໝົດສາມາດດຳເນີນ SMIL ສຳລັບບັນຊີ HTML

ດ້ວຍວິທີນັ້ນ ທຸກປະກອບສະມິດ SMIL ສາມາດດຳເນີນໃຫ້ເປັນບັນຊີ HTML ທຳມະດາໃນອິນເຕີເນັດ

ການເພີ່ມການອ້າງອີງ

ຖ້າທ່ານຕ້ອງໃຊ້ປະກອບ SMIL ໃນ HTML ທ່ານຕ້ອງອະທິບາຍ "time" ຊຸນນະບັນຊັ້ນ ສໍາລັບ Internet Explorer ເພື່ອຈະຮັບຮູ້ປະກອບນັ້ນ. ການເຮັດນັ້ນຈະເປັນ:

  • ການເພີ່ມຊຸນນະບັນຊັ້ນສຳລັບ <html> ອັບເທສ
  • ການເພີ່ມປະກອບ <?import> ເພື່ອນຳນຳ "time" ຊຸນນະບັນຊັ້ນ

ຖ້າທ່ານຕ້ອງເພີ່ມປະສົມປະກອບ SMIL ໃຫ້ປະກອບ HTML ທຳມະດາ ທ່ານຕ້ອງອະທິບາຍ "time" ສໍາລັບ Internet Explorer ເພື່ອຈະຮັບຮູ້ປະສົມປະກອບນັ້ນ. ການເຮັດນັ້ນຈະເປັນ:

  • ການເພີ່ມປະກອບ <style> ເພື່ອການອະທິບາຍ "time"
<html xmlns:time="urn:schemas-microsoft-com:time">
<head>
  <?import namespace="time" implementation="#default#time2">
  <style>.time {behavior: url(#default#time2)}</style>
</head>

ໃນບົດຕໍ່ໄປແລ້ວ ທ່ານຈະເຫັນຄວາມພິຈາລະນາທີ່ສົມບູນ

ການເພີ່ມປະກອບສັນຍາສະມິດ

To run SMIL presentation in HTML, just add a prefix and a class attribute to the SMIL element:

<time:seq repeatCount="indefinite">
  <img class="time" src="image1.jpg" dur="3s" />
  <img class="time" src="image2.jpg" dur="3s" />
</time:seq>

In the above examples, we have added the class="time" to the <img> element and added the "time" prefix to the SMIL element.

Tip:Classes and namespaces do not necessarily have to be called "time". Any name can be used.

An instance of Internet Explorer

<html xmlns:time="urn:schemas-microsoft-com:time">
<head>
  <?import namespace="time" implementation="#default#time2">
  <style>.time {behavior: url(#default#time2)}</style>
</head>
<body>
  <time:seq repeatCount="indefinite">
    <img class="time" src="image1.jpg" dur="3s" />
    <img class="time" src="image2.jpg" dur="3s" />
  </time:seq>
</body>
</html>

TIY