September 28, 2000 - Sequencing Elements using XML
September 28, 2000 Sequencing Elements using XML Tips: September 2000
Yehuda Shiran, Ph.D.
|
t:SEQ
. You have to define the t
XML namespace in the HEAD
section:
<XML:NAMESPACE PREFIX="t"/>
Try it now. The browser plays members of the group one after the other. Only one slide is displayed at a time. They all show up at the top left corner because of the attribute TIMEACTION="display"
which forces a reflowing of the page each time an element disappears.
Here is the full listing:
<HTML>
<HEAD>
<XML:NAMESPACE PREFIX="t"/>
<TITLE>Simple HTML+TIME Example</TITLE>
<STYLE>
.mytime {behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY>
<t:SEQ CLASS="mytime">
<IMG CLASS="mytime" SRC="slide1.gif" DUR="5" TIMEACTION="display">
<IMG CLASS="mytime" SRC="slide4.gif" DUR="5" TIMEACTION="display">
<IMG CLASS="mytime" SRC="slide5.gif" DUR="5" TIMEACTION="display">
<IMG CLASS="mytime" SRC="slide6.gif" DUR="5" TIMEACTION="display">
</t:SEQ>
</BODY>
</HTML
Learn more about HTML+TIME in Column 67, Introduction to HTML+TIME.