fork download
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. <html >
  10.  
  11. <head>
  12.  
  13. <title>未命名頁面</title>
  14.  
  15. <script type="text/javascript">
  16.  
  17.  
  18.  
  19. function play() {
  20.  
  21. var mediaElement = document.getElementById("SLVIDEO");
  22.  
  23. mediaElement.Play();
  24.  
  25. }
  26.  
  27. function pause() {
  28.  
  29. var mediaElement = document.getElementById("SLVIDEO");
  30.  
  31. mediaElement.Pause();
  32.  
  33. }
  34.  
  35.  
  36.  
  37.  
  38.  
  39. function getCurTime()
  40.  
  41. {
  42.  
  43. var mediaElement=document.getElementById("SLVIDEO");
  44.  
  45. alert(mediaElement.currentTime);
  46.  
  47. }
  48.  
  49.  
  50.  
  51. </head>
  52.  
  53. <body>
  54.  
  55. <form id="form1" runat="server">
  56.  
  57. <div>
  58.  
  59. <table>
  60.  
  61. <caption>
  62.  
  63. 影片播放</caption>
  64.  
  65. <tr>
  66.  
  67. <td>
  68.  
  69. <!--<embed autostart="1" name="ShowControls" value="false" type="video/x-ms-wmv" width="720" height="480" src="mms://120.96.183.21/video/1234/iMOD_intro.wmv"/>-->
  70.  
  71. <object id="SLVIDEO" width="300" height="300" type="video/x-ms-asf">
  72.  
  73. <param name="FileName" value="mms://120.96.183.21/video/1234/iMOD_intro.wmv">
  74.  
  75. <param name="autostart" value="false">
  76.  
  77. <param name="ShowControls" value="false">
  78.  
  79. <param name="ShowStatusBar" value="false">
  80.  
  81. <param name="ShowDisplay" value="false"></object>
  82.  
  83. </td>
  84.  
  85. </tr>
  86.  
  87. <tr>
  88.  
  89. <td>
  90.  
  91.  
  92.  
  93. <input type="button" name="Playbtn" value="Play Video" onclick="play()" />
  94.  
  95. <input type="button" name="Pausebtn" value="Pause Video" onclick="pause()" />
  96.  
  97. <input type="button" value="getCurTime" onclick="getCurTime()" />
  98.  
  99.  
  100.  
  101.  
  102.  
  103. </td>
  104.  
  105. </tr>
  106.  
  107. </table>
  108.  
  109. </div>
  110.  
  111. </form>
  112.  
  113. </body>
  114.  
  115. </html>
  116.  
  117.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:13:5: error: stray ‘\346’ in program
     <title>未命名頁面</title>
     ^
prog.cpp:13:5: error: stray ‘\234’ in program
prog.cpp:13:5: error: stray ‘\252’ in program
prog.cpp:13:5: error: stray ‘\345’ in program
prog.cpp:13:5: error: stray ‘\221’ in program
prog.cpp:13:5: error: stray ‘\275’ in program
prog.cpp:13:5: error: stray ‘\345’ in program
prog.cpp:13:5: error: stray ‘\220’ in program
prog.cpp:13:5: error: stray ‘\215’ in program
prog.cpp:13:5: error: stray ‘\351’ in program
prog.cpp:13:5: error: stray ‘\240’ in program
prog.cpp:13:5: error: stray ‘\201’ in program
prog.cpp:13:5: error: stray ‘\351’ in program
prog.cpp:13:5: error: stray ‘\235’ in program
prog.cpp:13:5: error: stray ‘\242’ in program
prog.cpp:63:13: error: stray ‘\345’ in program
             影片播放</caption>
             ^
prog.cpp:63:13: error: stray ‘\275’ in program
prog.cpp:63:13: error: stray ‘\261’ in program
prog.cpp:63:13: error: stray ‘\347’ in program
prog.cpp:63:13: error: stray ‘\211’ in program
prog.cpp:63:13: error: stray ‘\207’ in program
prog.cpp:63:13: error: stray ‘\346’ in program
prog.cpp:63:13: error: stray ‘\222’ in program
prog.cpp:63:13: error: stray ‘\255’ in program
prog.cpp:63:13: error: stray ‘\346’ in program
prog.cpp:63:13: error: stray ‘\224’ in program
prog.cpp:63:13: error: stray ‘\276’ in program
prog.cpp:9:1: error: expected unqualified-id before ‘<’ token
 <html >
 ^
prog.cpp:27:1: error: ‘function’ does not name a type
 function pause() {
 ^
prog.cpp:39:1: error: ‘function’ does not name a type
 function getCurTime()
 ^
prog.cpp:51:1: error: expected unqualified-id before ‘<’ token
 </head>
 ^
stdout
Standard output is empty