Nothing is Working for me in IE8
Not even with compatibility mode, nothing works at all, Jquery is simply not running, I'm trying to make the following simple code working:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- <script type="application/javascript" language="javascript" src="scripts/jquery-1.3.2.min.js"></script>
- <script type="application/javascript" language="javascript">
- $(window).load(function(){
- $('li.animated').mouseover(function(){
- $(this).addClass('active');
- });
- $('li.animated').mouseout(function(){
- $(this).removeClass('active');
- });
- $('[bxTab]').click(function(){
- $('.tabbed').css('display','none');
- $('#'+$(this).attr('bxTab')).css('display','block');
- });
- });
- </script>
- <style type="text/css">
- .active{
- background-color:#66CCFF;
- display:block;
- cursor:pointer;
- }
- </style>
- </head>
- <body>
- <ul>
- <li class="animated" bxTab="home_pane">Home</li>
- <li class="animated" bxTab="news_pane">News</li>
- <li class="animated" bxTab="project_pane">Project Outline</li>
- <li class="animated" bxTab="gallery_pane">Gallery</li>
- <li class="animated" bxTab="downloads_pane">Downloads</li>
- <li class="animated" bxTab="links_pane">Links</li>
- </ul>
- <div id="home_pane" class="tabbed">Home</div>
- <div id="news_pane" class="tabbed">News</div>
- <div id="project_pane" class="tabbed">Project</div>
- <div id="gallery_pane" class="tabbed">Gallery</div>
- <div id="downloads_pane" class="tabbed">Downloads</div>
- <div id="links_pane" class="tabbed">Links</div>
- </body>
- </html>
I went even so far as using the jquery version that ships with visual studio (after the most recent version I downloaded from jquery.com yielded the same dead results). Can anyone tell me why? I've also tried using $(document).ready and simply $() and both cases didn't work either.