Results 1 to 3 of 3

Thread: DHTML Slide Show Script - IE 4+ special random effect

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Slide Show Script - IE 4+ special random effect

    I'm using the DHTML Slide Show Script in my website which is very effective and perfect for my needs, but I would like to remove the transition effect in IE 4+ as it doesn't suit the style of my site.

    Can anyone help here?

    http://www.dynamicdrive.com/dynamici...dhtmlslide.htm

    my site http://www.oliverperrott.com

    cheers

  2. #2
    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

    Near the end of the first part of the script, make these:

    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()
    }
    }
    Like so:

    Code:
    function backward(){
    if (which>0){
    which--
    document.images.photoslider.src=photos[which]
    keeptrack()
    }
    }
    
    function forward(){
    if (which<photos.length-1){
    which++
    document.images.photoslider.src=photos[which]
    keeptrack()
    }
    }
    And in the second part of the script, get rid of the highlighted:

    Code:
          <script>
    if (linkornot==1)
    document.write('<a href="javascript:transport()">')
    document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')
    if (linkornot==1)
    document.write('</a>')
    </script>
    So it looks like so:

    Code:
          <script>
    if (linkornot==1)
    document.write('<a href="javascript:transport()">')
    document.write('<img src="'+photos[0]+'" name="photoslider" border=0>')
    if (linkornot==1)
    document.write('</a>')
    </script>
    - John
    ________________________

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

  3. #3
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thats great, thank you very much!

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
  •