title: jQuery/Javascript. Highlighting a certain something when on a certain page and general tips
body: <p>I am learning jquery/javascript through trial and error by myself with the help of different sites and video tutorials.
  I got a gig for a stand-up team.
  I made a loader because i want the site to load easily and with no lag, made some fadeIns for certain parts of the page, etc..</p>
  
  <p>I got a problem with the nav bar, the site will have around 6-7 pages and i want to extract the id of every html page the user is on with $("html").attr("id");, put it in a var x and then ask something like if(x="1/2/3/4/5/6") $("header").css("border","blabla"). It seems that the browser has some problems with var x or the = token, i am continuously getting errors regarding those 2. Any ideeas?
  Also is it ok if i made something like this for the loader:</p>
  
  <pre><code>$(window).load(function() {
      $("#loading").delay(2000).fadeOut("fast");
  
  
      $("header").hide().delay(2050).fadeIn(500);
      $("footer").hide().delay(2050).fadeIn(500);
      $(".interior").hide().delay(2050).fadeIn(550);
      });
  </code></pre>
  
  <p>This is the part i wanted to use for highlighting a nav buton</p>
  
  <pre><code>   *$(document).ready(function(){
          var x = $("html").attr("id");
          if(var = "1") $("#buton1").css("border","2px solid #E80000").css("border-radius","20px");
      });
  </code></pre>
  
  <p>Is it a productive way of working or there are other ways and easier ways of doing stuff.</p>
  
  <p>Ty.</p>