Results 1 to 3 of 3

Thread: Swiss Army Pushdown

  1. #1
    Join Date
    Nov 2007
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Swiss Army Pushdown

    1) Script Title: Swiss Army Slideshow

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

    3) Describe problem: Pushdown effect on image buttons

    Is it possible to remove the pushdown effect on the image buttons?
    I hope it is. I've tried to locate the function in the script with no luck so far.

    Hoping to resolve this issue (...that would be you resolving it).
    Thank you.

    Best regards
    Nano

  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

    Find this function in swissarmy.js and comment out the highlighted lines by adding the javascript comment tokens (/* */) as shown:

    Code:
    inter_slide.prototype.ibute=function(obj, i){
    if(!obj.parentNode)
    return;
    if(i==1)
    obj.parentNode.style.backgroundColor=this.ibut_hc? this.ibut_hc : 'yellow';
    else if(i==2)
    obj.parentNode.style.backgroundColor='transparent';
    /*else if(i==3){
    obj.parentNode.style.borderTop=obj.parentNode.style.borderLeft='1px solid gray';
    obj.parentNode.style.paddingRight='1px';obj.parentNode.style.paddingBottom=0;
    }
    if (i==2||i==4){
    obj.parentNode.style.borderTop=obj.parentNode.style.borderLeft='none';
    obj.parentNode.style.paddingRight='2px';obj.parentNode.style.paddingBottom='1px';
    }*/
    }
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Nano (10-24-2008)

  4. #3
    Join Date
    Nov 2007
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Solved

    That did the trick. Thank you so much.
    By the way, you have made a kick ass, extremely versatile slideshow here.

    Thank you!

    Best regards
    Nano

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
  •