Results 1 to 5 of 5

Thread: DHTML:Manual Slideshow

  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML:Manual Slideshow

    1) Script Title: Manual Slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...dhtmlslide.htm

    3) Describe problem:
    How can I get this to be transition-less? Meaning no effect at all when switching between images.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    In this function of the javascript code, just add the highlighted part:

    Code:
    function playeffect(){
    if (document.all && photoslider.filters)
    //photoslider.filters.revealTrans.play()
    }
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried this and now the images will not display at all.

    Here's the url:

    http://www.elnativogrowers.com/plantsPage.php?2/#

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Actually, you need to modify these two functions as shown (additions red):

    Code:
    function backward(){
    if (which>0){
    which--
    //applyeffect()
    document.images.photoslider.src=photos[which]
    //playeffect()
    keeptrack()
    }
    }
    
    function forward(){
    if (which<photos.length-1){
    which++
    //applyeffect()
    document.images.photoslider.src=photos[which]
    //playeffect()
    keeptrack()
    }
    }
    Or you could just remove those lines with the // entirely.

    Once they are commented out or removed, you can (but don't need to) also get rid of these two functions:

    Code:
    function applyeffect(){
    if (document.all && photoslider.filters){
    photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
    photoslider.filters.revealTrans.stop()
    photoslider.filters.revealTrans.apply()
    }
    }
    
    
    
    function playeffect(){
    if (document.all && photoslider.filters)
    photoslider.filters.revealTrans.play()
    }
    as they will no longer be used.

    And although it doesn't seem to matter one way or the other, you can get rid of:

    Code:
     style="filter:revealTrans(duration=2,transition=23)"
    from the part of the code that goes in the body of the page. Doing so will lighten the load of the page slightly and make it more nearly valid (if that sort of thing concerns you).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank You Brother! Will Make Valid When Get Time.

Bookmarks

Posting Permissions

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