Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var current = "home";
- function home()
- {
- current = "home";
- update2();
- }
- function comp()
- {
- current = "comp";
- update2();
- }
- function team()
- {
- current = "team";
- update2();
- }
- function cars()
- {
- current = "cars";
- update2();
- }
- function spons()
- {
- current = "spons";
- update2();
- }
- function update2()
- {
- if (current == "home"){
- document.getElementById('home').style.cssText='color:#FFE006;font-size:20pt;text- shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
- document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
- } else if (current == "comp"){
- document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('comp').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
- document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
- } else if (current == "team"){
- document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('team').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
- document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
- } else if (current == "cars"){
- document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('cars').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
- document.getElementById('spons').style.cssText='color:white;font-size:18pt;text-shadow:;';
- } else if (current == "spons"){
- document.getElementById('home').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('comp').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('team').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('cars').style.cssText='color:white;font-size:18pt;text-shadow:;';
- document.getElementById('spons').style.cssText='color:#FFE006;font-size:20pt;text-shadow: -1px 1px 8px #ff9c00, 1px -1px 8px #ff9c00;';
- }
- }
- a.current { //styles }
- #home:visited, #comp:visited{
- color:red;
- }
- .rav:visited{ color:red; }
- a:visited{
- color:red;
- }
- .menu a{
- background-image:url('images/button.png');
- }
- .menu a.selected {
- background-image:url('images/button.png'):0 -50px;
- }
- $(".menu a").live('click', function() {
- $(".menu a").removeClass("selected");
- $(this).addClass("selected");
- return false;
- });
Add Comment
Please, Sign In to add comment