PDA

View Full Version : Gradual Fader Help (need to do the opposite)



kafure design group
03-21-2008, 12:25 AM
-Gradual Fader-

http://dynamicdrive.com/dynamicindex11/gradualfader.htm

This is very easy to describe, I would like the gradual fader to gradually fade out (darker) instead or gradually fading brighter as it does currently. Is there a way to reverse any part of the script to achieve this? I was able to install the script just fine, and it is only for images, but I want the images to get darker when you scroll over them. Please help! Thanks a million.

Alex

ddadmin
03-21-2008, 06:50 AM
Sure, just locate the last 3 lines inside gradualfader.js, and make the changes in red to them:


this.setopacity(targetobjects[i], 1)
targetobjects[i].onmouseover=function(e){gradualFader.fadeinterface(this, e, "fadedown")}
targetobjects[i].onmouseout=function(e){gradualFader.fadeinterface(this, e, "fadeup")}