09_Media/media4.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á 4</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    </style>
 15    <script type="text/javascript" >
 16      function Tlacidla(Start, Pauza, Pokracuj, Stop)
 17      {
 18        butStart.disabled=(Start==0);
 19        butPauza.disabled=(Pauza==0);
 20        butPokracuj.disabled=(Pokracuj==0);
 21        butStop.disabled=(Stop==0);
 22      }
 23    </script>
 24  </head>
 25  <body >
 26  <h2>Médiá 4</h2>
 27  <p>
 28  <span class="platno">
 29  <t:media id="Medium" timeAction="visibility" src="sample.wmv" begin="indefinite"
 30    onend  ="Tlacidla(1,0,0,0); "
 31  /></span>
 32  
 33  </p>
 34  <div>
 35  <button ID="butStart"
 36     onclick="Medium.beginElement(); Tlacidla(0,1,0,1); " > Štart </button>
 37  
 38  <button ID="butPauza"
 39    onclick="Medium.pauseElement(); Tlacidla(0,0,1,1); ">  Pauza </button>
 40  
 41  <button  ID="butPokracuj"
 42    onclick="Medium.resumeElement(); Tlacidla(0,1,0,1);">  Pokračuj </button>
 43  
 44  <button ID="butStop"
 45    onclick="Medium.endElement(); Tlacidla(1,0,0,0); ">    Stop  </button>
 46  
 47  <script type="text/javascript" >Tlacidla(1,0,0,0);</script>
 48  
 49  </div>
 50  </body>
 51  </html>