Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Please help with duration !

    Hi !.........


    I have just added a very fine Script (made by Tyler Clarke) to my website - only problem are that I need to add some duration to the slideshow !.......

    This is the actual Script: http://www.javascriptkit.com/script/...domslide.shtml

    It will be most appreciated if someonen could help me adding the duration !....
    '
    Thank you !......

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,898
    Thanks
    203
    Thanked 2,530 Times in 2,508 Posts
    Quote Originally Posted by carsten s chr View Post
    I have just added a very fine Script (made by Tyler Clarke) to my website - only problem are that I need to add some duration to the slideshow !.......
    What does that mean? Do you want the slideshow to end when the user clicks on a button? Or after so many images have been shown? Or after so many minutes? Or what?
    Last edited by Philip M; 12-13-2009 at 06:35 PM.

  • #3
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    example !

    Oh, maybe it was not clear what I want - sorry !.......

    Please see here (the pictures blend smoothly): http://www.scriptocean.com/slideshow/

    I just want that effect added to my script !....

    Hope that make sense !.....

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,898
    Thanks
    203
    Thanked 2,530 Times in 2,508 Posts
    So what you want is an image fader function. You should be able to adapt this.

    Code:
    var fade_direction = -1;
    
    function imageFader() {
    p = p + fade_direction;
    document.mainShow.filters.alpha.opacity = p;
    if (p==0) {
    document.images.mainShow.src=pix[isImage].src;
    document.selectIt.pictureList.selectedIndex=isImage;
    fade_direction = 1;
    }
    if (p==100) {
    fade_direction = -1;
    }
    else {
    fade_timer=setTimeout("imageFader()",0);
    }
    }
    But why do you not simply download and use http://www.scriptocean.com/slideshow/ if that is what you want?

    This free kick is going to be a left-footed or a right-footed strike. - Football commentator
    Last edited by Philip M; 12-13-2009 at 07:15 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •