Example 3

<itml>
  <head>
    <layout>
      <actor id="pillow" address="somewhere:7086"/>
      <actor id="screen" top="0" left="0" width="1024" height="768" 
      fit="fill" address="somewhereelse:7086"/>
    </layout>
  </head>
  <body>
  <par endsync="movie1">
      <action id="movie1" src="movie.avi" actor="screen">
      <action id="action1" src="file:/pillowaction1.pil" actor="pillow">
        <anchor onevent="action1.event1" href="#movie12" />
        <anchor onevent="action1.event2" href="#movie2" />
      </action>
  </par>
  <par id="movie12">
       <action src="movie12.avi" actor="screen" />
       <action src="file:/pillowaction2.pil" actor="pillow" />
  </par>
  <action id="movie2" src="movie2.avi" actor="screen" />
  </body>
</itml>

Example 2

This will load a image on the top left corner. When the mouse is pressed on the picture, it will show Google About in Chinese at bottom right. When the mouse is released, it will show the Dutch version.

<itml>
  <head>
    <layout>
      <actor id="topleft" top="0" left="0" width="250" height="100" 
      fit="fill" address="localhost:7086"/>
      <actor id="bottomright" top="60" left="250" width="512" height="384" 
      fit="fill" address="localhost:7086"/>      
    </layout>
  </head>
  <body>
  <par>
      <action id="icon" src="http://www.google.com/logos/da_vinci.gif" actor="topleft" />
      <action id="showgoogle" src="http://www.google.com/intl/zh-CN/about.html" 
            begin='icon.mousedown'
            actor="bottomright" />
      <action id="showgoogledut" src="http://www.google.nl/intl/nl/about.html" 
            begin='icon.mouseup'
            actor="bottomright"/>
  </par>
  </body>
</itml>

Example 1

<itml>
  <head>
    <layout>
      <actor id="rutger" top="0" left="0" width="1024" height="768" 
      fit="fill" address="localhost:7086"/>
    </layout>
  </head>
  <body>
  <par>
      <action id="coldid" src="file:/cold.tmp" 
             actor="rutger" dur="5000s">
        <anchor onevent="coldid.warmest" href="#showgoogle" />
      </action>
  </par>
  <action id="showgoogle" src="http://www.google.com/intl/zh-CN/about.html" 
       actor="rutger" />
  </body>
</itml>

JunHu: Dc222Home/WorkShops/ItmlExample (last edited 2008-10-03 20:20:19 by localhost)