spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column67


Introduction to HTML+TIME

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Playing Elements in Parallel

Similar to playing group elements in sequence, HTML+TIME lets you play elements of a group in parallel, with the TIMELINE="par" attribute. The official Microsoft documentation suggests that the following code will yield a parallel display of the our slides, repeating itself five times:

<HTML>
<HEAD>
<STYLE>
  .mytime {behavior: url(#default#time2);}
</STYLE>
</HEAD>
<DIV CLASS="mytime" REPEAT="5" DUR="10" TIMELINE="par"> 
    <IMG SRC="slide1.gif" CLASS="mytime" BEGIN="0" DUR="4">
    <IMG SRC="slide4.gif" CLASS="mytime" BEGIN="2" DUR="4"><BR>
    <IMG SRC="slide5.gif" CLASS="mytime" BEGIN="4" DUR="4">
    <IMG SRC="slide6.gif" CLASS="mytime" BEGIN="6" DUR="4">
</DIV>
</BODY>
</HTML>

Try it now. The repetition does not work. We deduced that you need to use the time behavior instead of time2 behavior to accomplish repetition of a parallel display of a group's elements. Try it now. Here is the code:

<HTML>
<HEAD>
<STYLE>
  .mytime {behavior: url(#default#time);}
</STYLE>
</HEAD>
<DIV CLASS="mytime" t:REPEAT="5" t:DUR="10" t:TIMELINE="par"> 
    <IMG SRC="slide1.gif" CLASS="mytime" t:BEGIN="0" t:DUR="4">
    <IMG SRC="slide4.gif" CLASS="mytime" t:BEGIN="2" t:DUR="4"><BR>
    <IMG SRC="slide5.gif" CLASS="mytime" t:BEGIN="4" t:DUR="4">
    <IMG SRC="slide6.gif" CLASS="mytime" t:BEGIN="6" t:DUR="4">
</DIV>
</BODY>
</HTML>

Next: A Final Word

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Produced by Yehuda Shiran and Tomer Shiran
Created: August 28, 2000
Revised: August 28, 2000

URL: http://www.webreference.com/js/column67/7.html