JQuery images roll over effect not working in IE8

JQuery images roll over effect not working in IE8

Hi 

I'm doing a micro-site with a grid of images, i created a bit of code to do a simple roll-over so when you are over the images display a blue panel with titles. It works fine in Firefox, Chrome and Safari but IE8 is not working at all. 

here is the link for the live version:


Could you guys give me directions and tips so I know what i am doing wrong, I will appreciate it. thanks in advance.

Jquery Code I put it in the header, just put it here to make it easy

  1. $(document).ready(function() {
  2. $("a.titlemask").hover(

  3. function() {
  4. $(this).children('.shide').show();
  5. }, function() {
  6. $(this).children('.shide').hide();
  7. });
  8. $("a.titlemask2").hover(

  9. function() {
  10. $(this).children('.shide').show();
  11. }, function() {
  12. $(this).children('.shide').hide();
  13. });
  14. });



html code:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  5. <title>Lowe and Partners</title>
  6. <link href="css/main.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

  8. <script type="text/javascript" src="js/flowplayer-3.2.6.min.js"></script>

  9. <script type="text/javascript">

  10. $(document).ready(function(){
  11. $("a.titlemask").hover(
  12. function() {

  13. $(this).children('.shide').show();
  14. },
  15. function() {

  16. $(this).children('.shide').hide();
  17. });
  18. $("a.titlemask2").hover(
  19. function() {

  20. $(this).children('.shide').show();
  21. },
  22. function() {

  23. $(this).children('.shide').hide();
  24. });
  25.  
  26. });
  27.         
  28.         
  29.         </script>
  30.         
  31.         

  32. </head>

  33. <body>


  34. <div id="wrap">
  35. <div class="thumb"><img src="images/lowe.gif" alt="lowe" width="219" height="219" /><a  class="titlemask" href="#"><span  class="shide">Download<br/>Credentials</span></a></div>
  36. <div class="thumb"><img src="images/thumb-omo.jpg" alt="thumb-omo" width="219" height="219" /><a  class="titlemask" href="set-me-free-omo.html" target="_self"><span class="shide">Set Them Free<br/><em>Omo</em></span></a></div>
  37. <div class="thumb"><img src="images/thumb-organ-honors.jpg" alt="thumb-organ-honors" width="219" height="219" /><a  class="titlemask" href="leila-organ-donors.html" target="_self"><span class="shide">Leila<br/><em>Organ Donors</em></span></a></div>
  38. <div class="thumb double"><img src="images/thumb-the-force.jpg" alt="thumb-the-force" width="451" height="219" /><a  class="titlemask2" href="the-force.html" target="_self"><span class="shide">The Force<br/><em>Volkswagen Passat</em></span></a></div>
  39. <div class="thumb"><img src="images/thumb-criket.jpg" alt="thumb-criket" width="219" height="219" /><a  class="titlemask" href="cricket-ki-khushi-coca-cola.html" target="_self"><span class="shide">Cricket Ki Khushi<br/><em>Coca-Cola</em></span></a></div>
  40. <div class="thumb"><img src="images/thumb-the-cleaner.jpg" alt="thumb-the-cleaner" width="219" height="219" /><a  class="titlemask" href="the-cleaner-axe.html" target="_self"><span class="shide">The Cleaner<br/><em>Axe</em></span></a></div>
  41. <div class="thumb"><img src="images/thumb-rivers-of-light.jpg" alt="thumb-rivers-of-light" width="219" height="219" /><a  class="titlemask" href="rivers-of-light.html" target="_self"><span class="shide">Rivers of Light<br/><em>Colombian Ministry of Defence</em></span></a></div>
  42. <div class="thumb"><img src="images/thumb-contagion.jpg" alt="thumb-contagion" width="219" height="219" /><a  class="titlemask" href="contagion-trailer.html" target="_self"><span class="shide">Contagion Trailer<br/><em>Contagion</em></span></a></div>
  43. </div>
  44. <div class="footer">
  45. <div class="txt-footer"><p>© 2012 Lowe and Parttners Worldwide<br/>
  46. Powered by Lowe and Partners IT </p></div>
  47. <img src="images/lowe-small.gif" alt="lowe-small" width="49" height="33" />
  48. </div>

  49. </body>
  50. </html>

here is the css

  1. A:link, A:visited, A:active {font-family: 'Avenir_light_custom',  times, serif; font-size: 14px; color:#76bbe5;}

  2. A:hover {text-decoration: underline; color: #aad8f4;}

  3. body {
  4. background:#fff;
  5. }
  6. img {  
  7. border-style: none;
  8. }





  9. #wrap {
  10. background:#fff;
  11. width: 705px;
  12. margin: 36px auto;
  13. margin-top: 72px;

  14. }

  15. #main {
  16. width: 519px;
  17. height: 291px;
  18. margin: 0 auto;

  19. }


  20. .controls {
  21. margin: 0 auto;
  22. width: 519px;
  23. height: 20px;
  24. margin-top: 10px;
  25. }

  26. .controls p {
  27. font-family: 'Avenir_light_custom',  times, serif;
  28. font-size: 14px;
  29. line-height: 16px;
  30. color: #666;
  31. float: left;
  32. }


  33. .controls a {
  34. font-family: 'Avenir_light_custom',  times, serif;
  35. font-size: 14px;
  36. line-height: 16px;
  37. float: right;
  38. }

  39. .thumb {
  40. width: 219px;
  41. height: 219px;
  42. float: left;
  43. margin: 6px;
  44. position: relative;
  45. z-index: 1;
  46. }

  47. .thumb.double {
  48. width: 451px;
  49. height: 219px;
  50. float: left;
  51. }



  52. a.titlemask:link, a.titlemask:visited,  a.titlemask:active  {
  53. position: absolute;
  54. top:0;
  55. left: 0;
  56. z-index: 22;
  57. display: block !important; 
  58. width: 201px;
  59. height: 201px;
  60. padding: 9px;
  61. color: #fff;
  62. text-decoration: none;
  63. font-size: 14px;
  64. line-height: 15px;
  65. text-transform: uppercase;

  66. }


  67. a.titlemask:hover {
  68. background-color: rgba(105, 173, 222, 0.8);
  69. }


  70. a.titlemask2:link, a.titlemask2:visited,  a.titlemask2:active  {
  71. position: absolute;
  72. top:0;
  73. left: 0;
  74. z-index: 22;
  75. display: block !important; 
  76. width: 433px;
  77. height: 201px;
  78. padding: 9px;
  79. color: #fff;
  80. text-decoration: none;
  81. font-size: 14px;
  82. line-height: 15px;
  83. text-transform: uppercase;

  84. }


  85. a.titlemask2:hover {
  86. background-color: rgba(105, 173, 222, 0.8);
  87. }


  88. .titlemask span em, .titlemask2 span em {
  89. font-size: 11px;
  90. }

  91. /*


  92. .thumb a:link, .thumb a:visited,  .thumb a:active {
  93. position: absolute;
  94. top:0;
  95. left: 0;
  96. z-index: 22;
  97. display: block;
  98. width: 219px;
  99. height: 219px;
  100. background-color: green;
  101. }

  102. .thumb a:hover {
  103. position: absolute;
  104. top:0;
  105. left: 0;
  106. z-index: 22;
  107. display: block;
  108. background-color: purple;
  109. }

  110. */

  111. .titlemask span, .titlemask2 span {
  112. display: none;
  113. }

  114. .footer {
  115. width: 705px;
  116. margin: 36px auto;
  117. overflow: hidden;
  118. border-top: 57px solid #fff;

  119. }


  120. .header {
  121. width: 705px;
  122. margin: 36px auto;
  123. overflow: hidden;
  124. border-bottom: 57px solid #fff;
  125. }

  126. .txt-footer {
  127. width: 200px;
  128. height: 30px;
  129. float: left;
  130. margin-left: 450px;

  131. }

  132. .txt-footer p {

  133. padding-top:5px;
  134. font-family: 'Avenir_light_custom',  times, serif;
  135. font-size: 10px;
  136. line-height: 14px;
  137. color: #999;
  138. text-align: right;

  139. }

  140. .footer img {float: right; border-right: 16px solid #fff;}