Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <style type="text/css">
  2. <!-- Mulai_antinoscript \\
  3. .alert {
  4. background: #fff6bf url(http://upload.wikimedia.org/wikipedia/commons/c/c0/Exclamation.png) center no-repeat;
  5. background-position: 15px 50%; /* x-pos y-pos */
  6. text-align: left;
  7. padding: 10px 20px 10px 45px;
  8. border-top: 2px solid #ffd324;
  9. border-bottom: 2px solid #ffd324;
  10. }
  11. // selesai_antinoscript -->
  12. </style>
  13.  
  14. <script language="JavaScript">
  15. <!-- Mulai_script_soal
  16. var ans = new Array;
  17. var done = new Array;
  18. var score = 0;
  19. ans[1] = "c";
  20. ans[2] = "a";
  21. ans[3] = "b";
  22. ans[4] = "b";
  23. ans[5] = "d";
  24. ans[6] = "c";
  25. ans[7] = "c";
  26. ans[8] = "c";
  27. ans[9] = "d";
  28. ans[10] = "a";
  29.  
  30. function Engine(question, answer) {
  31. if (answer != ans[question]) {
  32. if (!done[question]) {
  33. done[question] = -1;
  34. alert("Salah!\n\nSkor anda sekarang adalah: " + score);
  35. }
  36. else {
  37. alert("Anda sudah pernah menjawab soal ini!");
  38.    }
  39. }
  40. else {
  41. if (!done[question]) {
  42. done[question] = -1;
  43. score++;
  44. alert("Benar!\n\nSkor anda sekarang adalah: " + score);
  45. }
  46. else {      
  47. alert("Anda sudah pernah menjawab soal ini!");
  48.       }
  49.    }
  50. }
  51. function NextLevel () {
  52. if (score > 10) {
  53. alert("Anda mendapatkan nilai SEMPURNA !");
  54. }
  55. if (score >= 7 && score <= 11) {
  56. alert("Akses Diterima! Klik tombol ...")
  57. self.location="http://www.umboh.net/p/about.html"
  58. }
  59. else {
  60. alert("Akses di tolak!  anda membutuhkan 7 point untuk lanjut ke tahap selanjutnya.")
  61.    }
  62. }
  63. // Selesai_Script_Soal -->
  64. </script>
  65.  
  66. <span style="font-size: x-large;"><span style="font-family: Arial;">Tes Belajar TIK</span></span><br />
  67. <b>Petunjuk: Jumlah poin untuk lanjut ke sesi berikut adalah 7 poin</b><br/>
  68. <noscript><p class="alert">Javasript tidak mendukung atau tidak aktif di browser anda. Mohon agar mengatifkan javascript anda.</p></noscript>
  69. <hr />
  70. <form>
  71. <b>1. Contoh soal nomor 1?</b><br />
  72. <input onclick="Engine(1, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  73. <input onclick="Engine(1, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  74. <input onclick="Engine(1, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  75. <input onclick="Engine(1, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  76. <b>2. Contoh soal nomor 2?</b><br />
  77. <input onclick="Engine(2, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  78. <input onclick="Engine(2, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  79. <input onclick="Engine(2, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  80. <input onclick="Engine(2, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  81. <b>3. Contoh soal nomor 3?</b><br />
  82. <input onclick="Engine(3, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  83. <input onclick="Engine(3, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  84. <input onclick="Engine(3, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  85. <input onclick="Engine(3, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  86. <b>4. Contoh soal nomor 4?</b><br />
  87. <input onclick="Engine(4, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  88. <input onclick="Engine(4, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  89. <input onclick="Engine(4, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  90. <input onclick="Engine(4, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  91. <b>5. Contoh soal nomor 5?</b><br />
  92. <input onclick="Engine(5, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  93. <input onclick="Engine(5, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  94. <input onclick="Engine(5, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  95. <input onclick="Engine(5, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  96. <b>6. Contoh soal nomor 6?</b><br />
  97. <input onclick="Engine(6, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  98. <input onclick="Engine(6, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  99. <input onclick="Engine(6, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  100. <input onclick="Engine(6, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  101. <b>7. Contoh soal nomor 7?</b><br />
  102. <input onclick="Engine(7, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  103. <input onclick="Engine(7, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  104. <input onclick="Engine(7, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  105. <input onclick="Engine(7, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  106. <b>8. Contoh soal nomor 8?</b><br />
  107. <input onclick="Engine(8, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  108. <input onclick="Engine(8, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  109. <input onclick="Engine(8, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  110. <input onclick="Engine(8, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  111. <b>9. Contoh soal nomor 9?</b><br />
  112. <input onclick="Engine(9, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  113. <input onclick="Engine(9, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  114. <input onclick="Engine(9, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  115. <input onclick="Engine(9, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  116. <b>10. Contoh soal nomor 10?</b><br />
  117. <input onclick="Engine(10, this.value)" type="radio" value="a" />Contoh Jawaban A<br />
  118. <input onclick="Engine(10, this.value)" type="radio" value="b" />Contoh Jawaban B<br />
  119. <input onclick="Engine(10, this.value)" type="radio" value="c" />Contoh Jawaban C<br />
  120. <input onclick="Engine(10, this.value)" type="radio" value="d" />Contoh Jawaban  D<br />
  121. <br />
  122. <br />
  123. <center>
  124.  
  125. <input onclick="NextLevel()" type="button" value="Soal Selanjutnya" />
  126.  
  127. </center>
  128.  
  129. </form>