PDA

View Full Version : Swiss Army Pushdown



Nano
10-24-2008, 11:30 AM
1) Script Title: Swiss Army Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/swissarmy/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

jscheuer1
10-24-2008, 12:21 PM
Find this function in swissarmy.js and comment out the highlighted lines by adding the javascript comment tokens (/* */) as shown:


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';
}*/
}

Nano
10-24-2008, 01:08 PM
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