Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Math Test</title>
- <style>
- body{
- background:#111;
- }
- #container{
- background-color: #333;
- box-shadow: 0px 0px 5px 3px #2FF;
- margin: auto;
- width: 750px;
- }
- #btn{
- text-align: center;
- background-color: #555;
- color: #DDD;
- border: 1px solid #DDD;
- height: 30px;
- width: 120px;
- font-size: 14px;
- padding: 0;
- font-family: Times New Roman;
- transition-duration: 0.7s;
- }
- #btn:hover{
- background-color: #DDD;
- color: #111;
- border: 1px solid #111;
- height: 33px;
- width: 132px;
- font-size: 18px;
- }
- #game{
- height: 400px;
- border: 2px solid #399;
- }
- #leaderboard{
- height: 400px;
- border: 2px solid #399;
- }
- </style>
- <script>
- function theme(_shadow,_border)
- {
- document.getElementById('container').style.boxShadow=_shadow;
- document.getElementById('game').style.border=_border;
- document.getElementById('leaderboard').style.border=_border;
- }
- </script>
- </head>
- <body>
- <div id="container">
- <table>
- <tr>
- <td><button id="btn" onclick="theme('0px 0px 5px 3px #22F','2px solid #339')">blue</button></td>
- <td><button id="btn" onclick="theme('0px 0px 5px 3px #F22','2px solid #933')">red</button></td>
- <td><button id="btn" onclick="theme('0px 0px 5px 3px #2F2','2px solid #393')">green</button></td>
- <td><button id="btn" onclick="theme('0px 0px 5px 3px #FF2','2px solid #993')">yellow</button></td>
- <td><button id="btn" onclick="theme('0px 0px 5px 3px #2FF','2px solid #399')">teal</button></td>
- <td><button id="btn" onclick="theme('0px 0px 5px 3px #F2F','2px solid #939')">purple</button></td>
- </tr>
- <tr>
- <td colspan="3"><div id="game">
- </div></td>
- <td colspan="3"><div id="leaderboard">
- </div></td>
- </tr>
- <table>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment