306_1.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <html>
  2. <head>
  3. <title>Exam</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-capable" content="yes" />
  8. <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
  9. <META http-equiv="Cache-Control" content="no-cache">
  10. <META http-equiv="Pragma" content="no-cache">
  11. <META http-equiv="Expires" content="0">
  12. <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
  13. <script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js"></script>
  14. <script src="./fingers.js"></script>
  15. <script src="./function.js"></script>
  16. <script src="./function2.js"></script>
  17. <script type="text/javascript">
  18. saveRecord("33111");
  19. </script>
  20. <script>
  21. var arrow;
  22. var i = 0;
  23. function checkCorrect(){
  24. var correct=document.getElementById("correct");
  25. var wrong=document.getElementById("wrong");
  26. var check=document.getElementById("check");
  27. var blank=document.getElementById("blank");
  28. var next=document.getElementById("next");
  29. var back=document.getElementById("back");
  30. var checkButton29 = document.getElementById("checkButton29");
  31. if(arrow.checkRes()){
  32. setTimeout(
  33. function(){
  34. correct.style.display = "inline";
  35. correct.style.left =300;
  36. correct.style.top = 600;
  37. back.style.display = "inline";
  38. back.style.left = 610;
  39. back.style.top = 480;
  40. next.style.display = "inline";
  41. next.style.left = 730;
  42. next.style.top =480;
  43. },3000)
  44. }
  45. else{
  46. setTimeout(
  47. function(){
  48. wrong.style.display = "inline";
  49. wrong.style.left = 300;
  50. wrong.style.top = 600;
  51. back.style.display = "inline";
  52. back.style.left = 610;
  53. back.style.top = 480;
  54. next.style.display = "inline";
  55. next.style.left = 730;
  56. next.style.top =480;
  57. },3000)
  58. }
  59. //blank.className="hidden";
  60. }
  61. this.onload = function() {
  62. arrow=new FingerComponent(["left-item"],"right-item");
  63. }
  64. </script>
  65. <style>
  66. .defaultHideBtn{
  67. position:absolute;
  68. display: none;
  69. }
  70. .hidden{
  71. position:absolute;
  72. display :none;
  73. }
  74. .right-item{
  75. position:fixed;
  76. left: 630px;
  77. top: 180px;
  78. width: 180;
  79. text-align: center;
  80. line-height: 321px;
  81. }
  82. .left-item{
  83. position:fixed;
  84. left: 50px;
  85. top: 410px;
  86. width: 180;
  87. text-align: center;
  88. line-height: 321px;
  89. }
  90. .checkAnswer{
  91. position:absolute;
  92. display: inline;
  93. left: 650px;
  94. top: 140px;
  95. width: 150px;
  96. z-index: 10;
  97. }
  98. </style>
  99. <body>
  100. <div style="-webkit-perspective: 900000px;perspective: 900000px;">
  101. <img id="blank" src="image/310pq.jpg">
  102. <img id="check" src="image/check.jpg" class="hidden"/>
  103. <img id="correct" src="image/correct.jpg" class="hidden"/>
  104. <img id="wrong" src="image/wrongnext.jpg" class="hidden"/>
  105. <img id="left-item" src="image/310p.jpg" class="left-item">
  106. <img id="right-item" src="image/310p.jpg" class="right-item">
  107. <img class="defaultHideBtn" id="back" src="image/prevButton.jpg" onclick="nextPage(33119<?echo $count?>,309)"/>
  108. <img class="defaultHideBtn" id="next" src="image/nextButton.jpg" onclick="nextPage(33119<?echo $count?>,'310A')"/>
  109. </div>
  110. <button class= "CheckAnswer" id="checkButton29" onclick="checkCorrect();">確認答案</button>
  111. </body>
  112. </html>