|
|
XHTML+SMIL
|
XHTML+SMIL will let you write SMIL code in a valid XHTML document. Add
timing, animation,transition and other SMIL elements to your web pages. Just be
aware that as of today Internet Explorer>5.5 is the only browser of choice.
|
A simple way of explaining the XHTML+SMIL profile is by saying which
SMIL modules doesn't contain
Layout Module: The SMIL 2.0 layout module is not included. The
XHTML/CSS layout model provides layout functionality.
Linking Module: The SMIL 2.0 linking module is not included, as
XHTML provides linking functionality.
Structure Module: The SMIL 2.0 structure module is not included,
as the XHTML document is defined to be the host language, and so
provides the equivalent elements and semantics.
Metainformation Module: The SMIL 2.0 Metainformation module is
not included, as XHTML provides metadata functionality.
The SMIL modules that are left then are:
- Animation Module
- Content Control Module
- Media Object Module
- Timing and Synchronization Module
- Time Manipulations Module
- Transition Effects Module
This modules should be enough to play with, since the "missing"
modules functionality are fully supported in XHTML/CSS.
|
|
Namespace elements are included with a
SMIL namespace declaration:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:smil="http://www.w3.org/2001/SMIL20">
|
|
HTML+TIME
|
HTML+TIME is based on the (X)HTML+SMIL profile. It is Microsoft's
implementation in Internet Explorer and uses the time2 element behavior. A
different namespace is used but it has much of the funcionality described for
XHTML+SMIL. Associating elements with the time2 behavior using a CSS class
attribute gives us this minimal file:
|
|
<html xmlns:t="urn:schemas-microsoft-com:time">
<head>
<?import namespace="t" implementation="#default#time2">
<style>.t {behavior: url(#default#time2)}</style>
</head>
<body>
</body>
</html>
|
|
Below is the source for the Mr. Zebra presentation which was introduced in
the Introduction section section. The big difference is screen lay-out since the SMIL
lay-out module isn't included. Instead I used CSS inline style to describe
screen lay-out. I also chose to include the text-elements using <p> instead of
including them as text-files.
|
|
<HTML XMLNS:t ="urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>
< .time {behavior: url(#default#time2);}>
</STYLE>
<?IMPORT namespace="t" implementation="#default#time2">
</HEAD>
<BODY width="640" height="560" bgcolor="#FFFFFF">
<t:par>
<t:audio src="audio/Mr._Zebra.mp3" alt="Mr. Zebra perfomed by
Tori Amos" dur="19.6s"/>
<img class="time" src="images/zebra.jpg" alt="a zebra" width="640"
height="480" dur="18s" style="position: absolute; left: 0px; top: 0px;
width: 640px; height: 480px;"/>
<p class="time" dur="8s" style="position: absolute; left: 0px;
top: 480px; width: 640px; height: 80px; background-color:#FFFFFF" >
Hello Mr. Zebra</p>
<p class="time" begin="10s" style="position: absolute; left: 0px;
top: 480px; width: 640px; height: 80px; background-color:#FFFFFF">
Ratatouille Strychnine</p>
<p class="time" begin="13s" style="position: absolute; left: 0px;
top: 480px; width: 640px; height: 80px; background-color:#FFFFFF" >
sometimes she's a friend of mine</p>
<img class="time" src="images/sweater.jpg" alt="a sweater" begin="4s"
style="z-index:1; position: absolute; left:500px; top:360px; width:140;
height:120"/>
<img class="time" src="images/snow2_oil.jpg" alt="snow" begin="5.5s"
style="z-index:1; position: absolute; left:500px; top:240px; width:140;
height:120"/>
<img class="time" src="images/snow1_oil.jpg" alt="snow" begin="6s"
style="z-index:1; position: absolute; left:500px; top:120px; width:140;
height:120"/>
<img class="time" src="images/snow1_charcoal.jpg" alt="snow"
begin="6.5s" style="z-index:1; position: absolute; left:500px;
top:0px; width:140; height:120"/>
<img class="time" src="images/zebra_swirl80.jpg" alt="a swirled zebra"
begin="18s" style="position: absolute; left: 0px; top: 0px;
width: 640px; height: 480px;"/>
</t:par>
</BODY>
</HTML>
|
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords: xhtml examples,
xhtml tutorial,
smil player,
smil tutorial,
xhtml example,
smil example,
smil multimedia,
xhtml editor,
mms smil,
w3c xhtml,
xml xhtml,
text xhtml,
xhtml xslt,
smil text,
xsl xhtml,
xhtml svg,
xhtml dtd,
xhtml reference,
xhtml tags,
xhtml cdata,
xhtml namespace,
xhtml template,
xhtml stylesheet,
xhtml attributes,
xhtml javascript,
embed xhtml,
layout xhtml,
xhtml code,
xhtml tag
xhtml element,
xhtml document,
xhtml attribute,
css xhtml,
using xhtml
|
|
| HTML Quizes |
|
|
| XML Quizes |
|
|
| Browser Scripting Quizes |
|
|
| Server Scripting Quizes |
|
|
| .NET (dotnet) Quizes |
|
|
| Multimedia Quizes |
|
|
| Web Building Quizes |
|
|
| Java Quizes |
|
|
| Programming Langauges Quizes |
|
|
| Soft Skills Quizes |
|
|
| Database Quizes |
|
|
| Operating System Quizes |
|
|
| Software Testing Quizes |
|
|
| SAP Module Quizes |
|
|
| Networking Programming Quizes |
|
|
| Microsoft Office Quizes |
|
|
| Accounting Quizes |
|
|
| Computer Basics Quizes |
|
|
|