daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var current = "home";
  2.  
  3. function home()
  4. {
  5.     current = "home";
  6.     update2();
  7. }
  8.  
  9. function comp()
  10. {
  11.     current = "comp";
  12.     update2();
  13. }
  14.  
  15. function team()
  16. {
  17.     current = "team";
  18.     update2();
  19. }
  20.  
  21. function cars()
  22. {
  23.     current = "cars";
  24.     update2();
  25. }
  26.  
  27. function spons()
  28. {
  29.     current = "spons";
  30.     update2();
  31. }
  32.  
  33. function update2()
  34. {
  35.     if (current == "home"){
  36.         document.getElementById('home').style.cssText='color:#FFE006;font-size:20pt;text-   shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
  37.         document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
  38.         document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
  39.         document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
  40.         document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
  41.     } else if (current == "comp"){
  42.         document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
  43.         document.getElementById('comp').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
  44.         document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
  45.         document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
  46.         document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
  47.      } else if (current == "team"){
  48.          document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
  49.          document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
  50.          document.getElementById('team').style.cssText='color:#FFE006;font-size:20pt;text-shadow:  -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
  51.          document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
  52.          document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
  53.      } else if (current == "cars"){
  54.          document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
  55.          document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
  56.          document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
  57.          document.getElementById('cars').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
  58.          document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
  59.      } else if (current == "spons"){
  60.          document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
  61.          document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
  62.          document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
  63.          document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
  64.          document.getElementById('spons').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
  65.      }
  66.  }
  67.    
  68. a.current {  //styles }
  69.    
  70. #home:visited, #comp:visited{
  71.     color:red;
  72. }
  73.    
  74. .rav:visited{ color:red; }
  75.    
  76. a:visited{
  77.     color:red;
  78.     }
  79.    
  80. .menu a{
  81.    background-image:url('images/button.png');
  82. }
  83. .menu a.selected {
  84.      background-image:url('images/button.png'):0 -50px;
  85. }
  86.  
  87. $(".menu a").live('click', function() {
  88.   $(".menu a").removeClass("selected");
  89.   $(this).addClass("selected");
  90.   return false;
  91. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top