09_Media/media8.htm


  1  <?xml version="1.0" encoding="windows-1250"?>
  2  <!DOCTYPE html   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3    "DTD/xhtml1-strict.dtd">
  4  <html xmlns:t="urn:schemas-microsoft-com:time">
  5  <head>
  6    <title>Médiá 8</title>
  7    <meta http-equiv="Author" content="Imrich BURANSKY" />
  8    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1250" />
  9    <?import namespace="t" implementation="#default#time2">
 10    <style>
 11      .platno {
 12        border:1px solid black;  background:silver;  padding:10px;
 13      }
 14      .T { behavior: url(#default#time2); }
 15    </style>
 16    <script type="text/javascript" >
 17      function Tlacidla(Start, Pauza, Pokracuj, Stop)
 18      {
 19        butStart.disabled=(Start==0);
 20        butPauza.disabled=(Pauza==0);
 21        butPokracuj.disabled=(Pokracuj==0);
 22        butStop.disabled=(Stop==0);
 23      }
 24      function Stop (Co, Kedy)
 25      {
 26        if (Medium.currTimeState.activeTime>Kedy) Co.endElement() ;
 27      }
 28    </script>
 29  </head>
 30  <body >
 31  <h2>Médiá 8</h2>
 32  <p>
 33  <span class="platno">
 34  <t:media id="Medium" timeAction="visibility" src="sample.wmv" begin="indefinite"
 35    onend  ="Tlacidla(1,0,0,0); "
 36  /></span>
 37  
 38  </p>
 39  <div>
 40  <button ID="butStart"
 41     onclick="Medium.beginElement(); Info.beginElement(); Tlacidla(0,1,0,1); " > Štart </button>
 42  
 43  <button ID="butPauza"
 44    onclick="Medium.pauseElement(); Tlacidla(0,0,1,1); ">  Pauza </button>
 45  
 46  <button  ID="butPokracuj"
 47    onclick="Medium.resumeElement(); Tlacidla(0,1,0,1);">  Pokračuj </button>
 48  
 49  <button ID="butStop"
 50    onclick="Medium.endElement(); Tlacidla(1,0,0,0); ">    Stop  </button>
 51  
 52  <script type="text/javascript" >Tlacidla(1,0,0,0);</script>
 53  </div>
 54  <br />
 55  <p>
 56    <t:seq id="Info" begin="indefinite"  >
 57      <div class="T" dur=".1" repeatCount="indefinite" onrepeat ="Stop(this, 4)">
 58         Príchod do ZOO
 59      </div>
 60      <div class="T" dur=".1" repeatCount="indefinite" onrepeat ="Stop(this, 7)">
 61         Žirafa
 62      </div>
 63      <div class="T" dur=".1" repeatCount="indefinite" onrepeat ="Stop(this, 10)">
 64         Hyena
 65      </div>
 66      <div class="T" dur=".1" repeatCount="indefinite" onrepeat ="Stop(this, 12)">
 67         Medveď
 68      </div>
 69    </t:seq>
 70  </p>
 71  
 72  </body>
 73  </html>