You could "cheat" and put something like this before the main jQuery code.

  if ( /MSIE [1-5]/.test(navigator.userAgent) )
    jQuery = false;

This works because the main jQuery code is surrounded with:

  if(typeof window.jQuery == "undefined") {   ............ }

You would have to make sure the rest of your code didn't crash if
jQuery was not "present", which you could do like the jQuery library
does with the above condition.

Or you could wrap all the scripts using the conditional comments as
suggest before.

Karl Rudd

On 3/6/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Oliver Boermans schrieb:
> > Perhaps a little JavaScript inserted with a conditional comment in the
> > head of my document?
> >
> > <!--[if lt IE 6]>
> > <script type="text/javascript">
> > //Kill jQuery?
> > ...
> > </script>
> > <![endif]-->
> >
> > Thoughts?
>
> Why don't you make it the other way round?
>
> <!--[if gte IE 6]><-->
> <script type="text/javascript" src="jquery.js"></script>
> <!--><![endif]-->
>
>
> -- Klaus
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to