Results 1 to 2 of 2

Thread: Gradual Fader Help (need to do the opposite)

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

    Default Gradual Fader Help (need to do the opposite)

    -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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, just locate the last 3 lines inside gradualfader.js, and make the changes in red to them:

    Code:
    		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")}

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
  •