title: How to fix this jquery function to work in IE?
body: <p>I am relatively new with Javascript but managed to somehow get this code to work on chrome, firefox, safari but it doesn't properly on IE.  First look at this code and then after that I will explain what seems to be not working: </p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;link rel="stylesheet" type="text/css" href="http://www.domain.com/test/wtf.css" /&gt;
          &lt;script type="text/javascript" src="/js/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(function () {
                  var transition = 'slow';
                  var target1 = $('#flash1');
                  var target2 = $('#flash2');
                  var target3 = $('#box2');
                  var target4 = $('#tble');
                  var target5 = $('.links');
                  var target6 = $('#wording');
                  target1.delay(1000).fadeIn();
                  target2.delay(2000).fadeIn();
                  target3.delay(3000).fadeIn();
                  target4.delay(4000).fadeIn();
                  target5.delay(5000).fadeIn();
                  target6.delay(6000).fadeIn();
              });
          &lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function () {
                  $("#this_is_button").click(function () {
                      $("#box2").hide();
                      $("#tble").hide();
                      $(".links").hide();
                      $("#second_pls").show();
                      $("#box2").css("background", "black");
                  })
              });
          &lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(document).ready(function () {
                  $("#what_close").click(function () {
                      $("#second_pls").hide();
                      $("#tble").show();
                      $(".snap").show();
                      $(".links").show();
                      $("#box").css({
                          backgroundImage: "url('/test/img.jpg')",
                          backgroundSize: "800px"});
                      });
                  });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="box"&gt;
              &lt;div id="box2" style="display:none"&gt;&lt;/div&gt;
              &lt;div id="wording" style="display:none"&gt;
                  &lt;label id="flash1" style="display:none"&gt;Hello&lt;/label&gt;
                  &lt;label id="flash2" style="display:none"&gt;World&lt;/label&gt;
              &lt;/div&gt;
              &lt;div id="tble" style="display:none"&gt;This is a table&lt;/div&gt;
              &lt;div id="second_pls" style="display:none"&gt;Hello Hello Hello, is this working? come on already?!!
                  &lt;input type="button" id="what_close" value="Close"&gt;
              &lt;/div&gt;
              &lt;div class="links" style="display:none"&gt;
                  &lt;input type="button" id="this_is_button" value="Sample"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code> #box {
      background-color: #000000;
      height: 350px;
      margin-left: auto;
      margin-right: auto;
      width: 800px;
   }
   #box2 {
      background-image: url("/test/img.jpg");
      background-size: 800px;
      height: 550px;
      margin-left: auto;
      margin-right: auto;
      width: 800px;
      position: absolute;
  }
  #wording {
      position: relative;
      color: #999999;
      font-size: 15px;
      letter-spacing: 5px;
      margin-left: 20px;
      padding-top: 30px;     
      }
  #tble {
          margin-top: 180px;
          position: absolute;
  }
  #second_pls {
          margin-left: 10px;
          margin-top: 310px;
          position: absolute;
  }
  .links {
          margin-left: 10px;
          margin-top: 310px;
          position: absolute;
  }
  </code></pre>
  
  <p>So what is the part that doesn't seem to function when the page is rendered in IE? It seems that the fadeIn, fadeOut, hide and show parts are not rendering in IE except #flash1, and #flash2 work, the rest of the fade in, fade out don't work.  I am ripping my hair out not understanding why those two would work but not the rest.  </p>
  
  <p>I used BrowserStack and it seems that on Windows XP using IE 8 it renders properly with the exception of properly rendering the background image.  But on Windows 7 using IE 8, it works the same way as it does on Windows XP but when using IE 9 it gives me the current issue.  </p>
  
  <p>What am I doing wrong?</p>