Treehouse: Grow your CSS skills. Land your dream job.

Problem with jquery fader

  • # May 12, 2011 at 3:52 pm

    Hi everyone.

    Hopefully this is a simple fix. My friends site has a Jquery image fader (just 3 images) on the right on the home page. It seems to work fine in Firefox on my mac but for some reason on Chrome it doesnt load the full size of the images.

    Can anyone help me please. Im very new to Jquery !!

    The site again is

    Thanks in advance

    # May 12, 2011 at 4:41 pm

    Hi Hal8!

    The problem is Chrome is too fast LOL. It runs the plugin before all of the images are loaded, so all you need to do is switch the document.ready to window.load. Oh and there is an extra comma after the “pause: 1″ that will make IE throw a fit, so remove that too.

    $(window).load(function() {
    $("#slideshow").css("overflow", "hidden");

    fx: 'fade',
    pause: 1

    $("#slideshow").hover(function() {
    }, function() {
    # May 12, 2011 at 5:00 pm

    Hi Mottie

    Thanks you very much….that did the trick

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.