views:

26

answers:

0

I am having trouble with IE6 on the front page of a website.

The code should start an image carousel, with the following statement.

$("#carousel").infiniteCarousel();

But i get an error in IE6 (invalid argument), and it seems that IE6 keeps on loading an image file, which is visible in the browser.

When i uncomment the line, the error disappears.

The same code works fine on a subpage (portfolio.html), where we show the portfolio, the only difference is that the slidshow is loaded with AJAX, depending on what the user selects, and then 'infiniteCarousel()' is called.

    $(".portfolio a").click(function(){

 path = './portfolio-' + $(this).attr('title') + '.html'; 


 $("div.main").load(path, function(){

   $("#carousel").infiniteCarousel();
   $("#carousel").fadeTo(0, 0.01, function(){
   $("#carousel").fadeTo(200, 1.0);


  });
  redraw();
  $(this).css({'border-bottom' : '1px solid #666'});
 });



});