Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset = "utf-8">
- <title>Game Billow</title>
- <link rel = "stylesheet" href = "external/css/style.css">
- <link rel = "icon" type = "image/ico" href = "external/images/favicon.ico">
- <script>
- function Filter(page, genre) {
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.onreadystatechange = function() {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- document.getElementById("games").innerHTML = xmlhttp.responseText;
- }
- }
- xmlhttp.open("POST", "external/php/filter", true);
- xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- xmlhttp.send("page=" + page + "&genre=" + genre);
- }
- function Play(id) {
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.onreadystatechange = function() {
- if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- document.getElementById("game").innerHTML = xmlhttp.responseText;
- }
- }
- xmlhttp.open("POST", "external/php/game", true);
- xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- xmlhttp.send("id=" + id);
- }
- function HidePages() {
- document.getElementById("pages").innerHTML = "<div id = 'pages'><a href = 'javascript:void(0);'>1</a></div>";
- }
- function ShowPages() {
- document.getElementById("pages").innerHTML = "<div id = 'pages'><a href = 'javascript:void(0);' onclick = 'Filter(1, 'none')'>1</a> <a href = 'javascript:void(0);' onclick = 'Filter(2, 'none')'>2</a></div>";
- }
- </script>
- </head>
- <body>
- <div id = "game"></div>
- <div id = "genres">
- <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>
- </div>
- <div id = "games">
- <div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('55')'><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('55')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('54')'><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('54')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('53')'><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('53')'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('52')'><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('52')'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('51')'><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('51')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('50')'><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('50')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('49')'><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('49')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('48')'><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('48')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('47')'><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('47')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('46')'><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('46')'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('45')'><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('45')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('44')'><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('44')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('43')'><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('43')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('42')'><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('42')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('41')'><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('41')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('40')'><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('40')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('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')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('38')'><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('38')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('37')'><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('37')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('36')'><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('36')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('35')'><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('35')'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('34')'><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('34')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('33')'><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('33')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('32')'><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('32')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('31')'><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('31')'>Strategy</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('30')'><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('30')'>Action</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('29')'><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('29')'>Puzzles</a></div></div><div class = 'icon'><a href = 'javascript:void(0);' onclick = 'Play('28')'><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('28')'>Other</a></div></div>
- </div>
- <div id = "pages">
- <a href = "javascript:void(0);" onclick = "Filter(1, 'none'); ShowPages()">1</a> <a href = "javascript:void(0);" onclick = "Filter(2, 'none'); ShowPages()">2</a>
- </div>
- <div id = "footer"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement