jQuery provides an excellent "onReady" event in which you can put all
your code knowing that it will run asap, usually before the images
load etc.  I suspect your code it running before the elements are
there.

try this...  (I've used the shorthand for $.ready(...)

<script type="text/javascript">
   $(function(){
      .. your code here...
   });

By the way you can probably shrink your code a little by using syntax
like $(".poster #picture") and $("+div",this)

On Aug 13, 12:13 pm, NccWarp9 <[EMAIL PROTECTED]> wrote:
> The script below works in FF but not in IE7. I tracked down the
> problem to .click().
> Are there any issues with .click and IE7?
>
>                 <script type="text/javascript">
>                         $(".poster").find("#picture").click( function (){
>                         $(this).find("+ div").toggle(400)
>                 });
>                 </script>

Reply via email to