Advertisement
Guest User

Jdog

a guest
Apr 16th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.48 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <script>
  4.         function hideElementsByClass(className)
  5.         {
  6.             var all = document.all ? document.all : document.getElementsByTagName('div');
  7.             for (var e = 0; e < all.length; e++)
  8.                 if (all[e].className == className)
  9.                     all[e].style.display = "none";
  10.             return;
  11.         }
  12.  
  13.         function show(divName)
  14.         {
  15.             var page=document.getElementById(divName);
  16.             hideElementsByClass(page.className);
  17.             page.style.display = "block";
  18.             return true;
  19.         }
  20.     </script>
  21.     <style>
  22.         body
  23.         {
  24.             background-color: #000;
  25.             color: #FFF;
  26.         }
  27.  
  28.         span
  29.         {
  30.             color: #0FF;
  31.         }
  32.  
  33.         ul
  34.         {
  35.             list-style-type: none;
  36.         }
  37.  
  38.         li
  39.         {
  40.             list-style-type: none;
  41.             float: left;
  42.         }
  43.  
  44.         li a
  45.         {
  46.             padding: 8px;
  47.             background-color: #222;
  48.             color: #FFF;
  49.             margin-right: 0px;
  50.             font-family: "Verdana";
  51.             font-size: 12px;
  52.             font-weight: bold;
  53.             text-align: center;
  54.         }
  55.  
  56.         li a:hover
  57.         {
  58.             padding: 8px;
  59.             background-color: #444;
  60.             color: #FFF;
  61.             margin-right: 0px;
  62.             font-family: "Verdana";
  63.             font-size: 12px;
  64.             font-weight: bold;
  65.             text-align: center;
  66.         }
  67.  
  68.         #wrapper
  69.         {
  70.             width: 800px;
  71.             margin: 20 auto;
  72.         }
  73.  
  74.         #header
  75.         {
  76.             width: 800px;
  77.             height: 100px;
  78.             margin: 0 auto;
  79.         }
  80.  
  81.         #header-text
  82.         {
  83.             font-family: "Verdana";
  84.             font-size: 42px;
  85.             font-weight: bold;
  86.             text-align: center;
  87.             padding: 30px;
  88.         }
  89.  
  90.         #menu
  91.         {
  92.             width: 800px;
  93.             height: 30px;
  94.             margin: 0 auto;
  95.         }
  96.  
  97.         #content
  98.         {
  99.             width: 800px;
  100.             height: 400px;
  101.             margin: -7 auto;
  102.             border: 1px #444 solid;
  103.         }
  104.  
  105.         #content-text
  106.         {
  107.             padding: 5px;
  108.         }
  109.  
  110.         #footer
  111.         {
  112.             width: 800px;
  113.             height: 30px;
  114.             margin: 15 auto;
  115.         }
  116.  
  117.         #copyright
  118.         {
  119.             font-family: "Verdana";
  120.             font-size: 10px;
  121.             font-weight: bold;
  122.             text-align: center;
  123.         }
  124.     </style>
  125. </head>
  126. <body>
  127. <div id="wrapper">
  128.     <div id="header">
  129.         <div id="header-text">
  130.             <span>Jdog's</span> Website
  131.         </div>
  132.     </div>
  133.  
  134.  
  135.     <div id="menu">
  136.         <ul>
  137.             <li><a onclick="return show('home')">Home</a></li>
  138.             <li><a onclick="return show('TheBlog')">Blog</a></li>
  139.         </ul>
  140.     </div>
  141.  
  142.  
  143.     <div id="content">
  144.         <div id="content-text">
  145.             <div class="page" id="home">
  146.                 //Home stuff here.
  147.             </div>
  148.        
  149.             <div class="page" id="TheBlog">
  150.                 <?Blog?>
  151.             </div>
  152.         </div>
  153.     </div>
  154.  
  155.  
  156.     <div id="footer">
  157.         <div id="copyright">
  158.             copyright &copy; 2014 - all rights reserved
  159.         </div>
  160.     </div>
  161. </div>
  162. </body>
  163. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement