Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/07/2009, 06:34
xusmy
 
Fecha de Ingreso: julio-2009
Mensajes: 1
Antigüedad: 14 años, 9 meses
Puntos: 0
Sonrisa Problema Jquery con IE

Tengo el siguiente codigo y no consigo que funcione en IE7, alguna idea¿? GRACIAS.

Código HTML:
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
    <script>
        $(document).ready(function(){
            $(document.body).click(function () {               
                if ($("div:first").is(":hidden")) {
                    $("div").show("slow");
                } else {
                    $("div").fadeOut();
                }
            });
        });
    </script>
    <style>
        div{
            background-image:url(img/menu1.jpg);
            width:800px;
            height:500px;
            border: 2px solid red;
        }
    </style>
</head>
<body>
    Click me!
    <div></div>
</body>
</html>