Smile

SMIL Tutorial

SMIL Tutorial for

SMIL Tutorial for XHTML




The main part of a SMIL document for XHTML is a second processing instruction.
All XML documents contain a processing instruction at the top of the document.
Below is the standard PI for a XML document.

<?xml version="1.0" encoding="UTF-8" ?>

The XHTML-PLUS-SMIL document contains the second processing instruction.

<?import namespace="time" implementation="#default#time2" ?>

The namespace="time" is an instruction for Internet Explorer browsers to use the "time" features included in the internet explorer browser.
The time feature is the component of SMIL that produces the time delayed effects.
Such as the slide show or text effects.





The head section will contain the layout tags for the SMIl document.
As well as the style for using SMIl in XHTML.
The document for this tutorial does not contain layout tags.
Also the document has a style sheet attached as well as an inline style.
The inline style...

<style>.time {behavior: url(#default#time2)};.t {behavior: url(#default#time2)}</style>

..is necessary for the document to use the time feature in the body section.


Next page of the tutorial.

Previous page of the tutorial.

Contents




Lunarpages.com Web Hosting