How can I change the time that the images of my website (www.eduardlid2013.com) change faster?

Recommended Answers

All 2 Replies

Im not very good with JQuery, but Im guessing it's this fine feller:

$(document).ready(function(){

    //This keeps track of the slideshow's current location
    var current_panel = 1;
    //Controlling the duration of animation by variable will simplify changes
    var animation_duration = 2500;

    $.timer(6000, function (timer) {
        //Determine the current location, and transition to next panel
        switch(current_panel){
            case 1:
                $("#slideshow").stop().animate({left: "-960px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});
                current_panel = 2;
            break;
            case 2:
                $("#slideshow").stop().animate({left: "0px", top: "-350px"}, {easing: 'easeOutBack', duration: animation_duration});
                current_panel = 3;
            break;
            case 3:
                $("#slideshow").stop().animate({left: "-960px", top: "-350px"}, {easing: 'easeOutBack', duration: animation_duration});
                current_panel = 4;
            break;
            case 4:
                $("#slideshow").stop().animate({left: "0px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});
                current_panel = 1;
            break;  
            timer.reset(12000);
        }
    });

});

this is found in the file: image-rotator.js

someone who knows jquery better may be able to help...

Many thanks, but how do I save the file?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.