Advertisement
Guest User

Untitled

a guest
Nov 15th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.76 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.  
  5. <head>
  6.  
  7. <meta charset = "utf-8">
  8.  
  9. <title>Game Billow</title>
  10.  
  11. <link rel = "stylesheet" href = "external/css/style.css">
  12.  
  13. <link rel = "icon" type = "image/ico" href = "external/images/favicon.ico">
  14.  
  15. <script>
  16. function Filter(page, genre) {
  17. var xmlhttp = new XMLHttpRequest();
  18.  
  19. xmlhttp.onreadystatechange = function() {
  20. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  21. document.getElementById("games").innerHTML = xmlhttp.responseText;
  22. }
  23. }
  24. xmlhttp.open("POST", "external/php/filter", true);
  25. xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  26. xmlhttp.send("page=" + page + "&genre=" + genre);
  27. }
  28. function Play(id) {
  29. var xmlhttp = new XMLHttpRequest();
  30.  
  31. xmlhttp.onreadystatechange = function() {
  32. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  33. document.getElementById("game").innerHTML = xmlhttp.responseText;
  34. }
  35. }
  36. xmlhttp.open("POST", "external/php/game", true);
  37. xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  38. xmlhttp.send("id=" + id);
  39. }
  40. function HidePages() {
  41. document.getElementById("pages").innerHTML = "<div id = 'pages'><a href = 'javascript:void(0);'>1</a></div>";
  42. }
  43. function ShowPages() {
  44. document.getElementById("pages").innerHTML = "<div id = 'pages'><a href = 'javascript:void(0);' onclick = 'Filter(1, &#39;none&#39;)'>1</a> <a href = 'javascript:void(0);' onclick = 'Filter(2, &#39;none&#39;)'>2</a></div>";
  45. }
  46. </script>
  47.  
  48. </head>
  49.  
  50. <body>
  51.  
  52.  
  53. <div id = "game"></div>
  54.  
  55. <div id = "genres">
  56.  
  57. <p><a href = "javascript:void(0);" onclick = "Filter(1, 'none'); ShowPages()">All</a> <a href = "javascript:void(0);" onclick = "Filter(1, 'action'); HidePages()">Action</a> <a href = "javascript:void(0);" onclick = "Filter(1, 'puzzles'); HidePages()">Puzzles</a> <a href = "javascript:void(0);" onclick = "Filter(1, 'strategy'); HidePages()">Strategy</a> <a href = "javascript:void(0);" onclick = "Filter(1, 'other'); HidePages()">Other</a></p>
  58.  
  59. </div>
  60.  
  61. <div id = "games">
  62.  
  63. <div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;55&#39;)'><img src = 'http://games.mochiads.com/c/g/maze-evolution-2/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;55&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;54&#39;)'><img src = 'http://games.mochiads.com/c/g/zombie-goes-up/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;54&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;53&#39;)'><img src = 'http://games.mochiads.com/c/g/kingdom_v393755/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;53&#39;)'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;52&#39;)'><img src = 'http://games.mochiads.com/c/g/brave-knights/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;52&#39;)'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;51&#39;)'><img src = 'http://games.mochiads.com/c/g/age-of-wonder/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;51&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;50&#39;)'><img src = 'http://games.mochiads.com/c/g/rocketmouth-arena/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;50&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;49&#39;)'><img src = 'http://games.mochiads.com/c/g/sudden-aviator/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;49&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;48&#39;)'><img src = 'http://games.mochiads.com/c/g/zombotron-2-time-machine/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;48&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;47&#39;)'><img src = 'http://games.mochiads.com/c/g/click-battle/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;47&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;46&#39;)'><img src = 'http://games.mochiads.com/c/g/zombo-buster/_thumb_100x100.jpg' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;46&#39;)'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;45&#39;)'><img src = 'http://games.mochiads.com/c/g/reverse-boots/_thumb_100x100.jpg' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;45&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;44&#39;)'><img src = 'http://games.mochiads.com/c/g/pivot_v729766/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;44&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;43&#39;)'><img src = 'http://games.mochiads.com/c/g/wish-totems/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;43&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;42&#39;)'><img src = 'http://games.mochiads.com/c/g/knight-runner/_thumb_100x100.jpg' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;42&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;41&#39;)'><img src = 'http://games.mochiads.com/c/g/leave-me-a-clone/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;41&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;40&#39;)'><img src = 'http://games.mochiads.com/c/g/multi-square/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;40&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;39&#39;)'><img src = 'http://games.mochiads.com/c/g/zombotron-2/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;39&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;38&#39;)'><img src = 'http://games.mochiads.com/c/g/zombie-crypt-2/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;38&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;37&#39;)'><img src = 'http://games.mochiads.com/c/g/square-arena/_thumb_100x100.jpg' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;37&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;36&#39;)'><img src = 'http://games.mochiads.com/c/g/bois-darc/_thumb_100x100.jpg' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;36&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;35&#39;)'><img src = 'http://games.mochiads.com/c/g/giants-and-dwarves-td_v323150/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;35&#39;)'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;34&#39;)'><img src = 'http://games.mochiads.com/c/g/astronauticus/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;34&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;33&#39;)'><img src = 'http://games.mochiads.com/c/g/strike-force-heroes-2_v855034/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;33&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;32&#39;)'><img src = 'http://games.mochiads.com/c/g/jump-over-danger_v526438/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;32&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;31&#39;)'><img src = 'http://games.mochiads.com/c/g/siege-knight/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;31&#39;)'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;30&#39;)'><img src = 'http://games.mochiads.com/c/g/craterun/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;30&#39;)'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;29&#39;)'><img src = 'http://games.mochiads.com/c/g/steppin-stones_v617274/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;29&#39;)'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play(&#39;28&#39;)'><img src = 'http://games.mochiads.com/c/g/snowball_v256649/_thumb_100x100.png' width = '100' height = '100' alt = ''></a><div class = 'genre'><a href = 'javascript:void(0);' onclick = 'Play(&#39;28&#39;)'>Other</a></div></div>
  64.  
  65. </div>
  66.  
  67. <div id = "pages">
  68.  
  69. <a href = "javascript:void(0);" onclick = "Filter(1, 'none'); ShowPages()">1</a> <a href = "javascript:void(0);" onclick = "Filter(2, 'none'); ShowPages()">2</a>
  70.  
  71. </div>
  72.  
  73. <div id = "footer"></div>
  74.  
  75. </body>
  76.  
  77. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement