JS image fade-in-out effect. stuck on fadded out

Discussion in 'JavaScript' started by CircleOfLinks, Dec 7, 2007.

  1. #1
    Hi,

    I need help with something. I'm trying to add an effect on my new site which allows the image fade from light to dark slowly. its using a .js file....

    Ive installed the and followed the instruction which can be seen here aswell as the script http://www.dynamicdrive.com/dynamicindex11/gradualfader.htm But its not working. You can see whats happening by going to my site www.swiftproductions.com.au and you could see all the 5 images are faded and wont fade back to original colour when the mouse is over it. I've been trying for the past 3 days and can't figure it out. Please if you can help I would really appreciate it.

    Thanks
     
    CircleOfLinks, Dec 7, 2007 IP
  2. hrcerqueira

    hrcerqueira Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That gradualFader.init() statement should be right before the closing body tag and not before the closing head tag.

    Also, you forgot to follow the instructions regarding the IE layouts. Just specify the width on the style attribute for each image and it should work.

    Hope it helps.
     
    hrcerqueira, Dec 7, 2007 IP
  3. CircleOfLinks

    CircleOfLinks Active Member

    Messages:
    306
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    ledgnd,,, bloody hell spent ages trying everything out except that :p

    thanks heaps it work fine... I will update it to the server tomoro.

    again thanks for your help.
     
    CircleOfLinks, Dec 7, 2007 IP
  4. hrcerqueira

    hrcerqueira Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No problem ;-)
     
    hrcerqueira, Dec 7, 2007 IP
  5. cre8ive

    cre8ive Peon

    Messages:
    295
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi, just found this thread and went to check examples on Dynamic Drive. I love the effect and I want to use this on my website, but I’m getting the impression that JavaScript uses a lot of resources (memory?). Does this script affect the over all performance of the website or the browser? Or I shouldn’t be concerned about that at all …
     
    cre8ive, Dec 7, 2007 IP
  6. satusaja

    satusaja Active Member

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    I think the js has a very minimal effect on website performance.
    You can analyse website performance better using Firefox + Firebug + YSlow
     
    satusaja, Dec 8, 2007 IP
  7. CircleOfLinks

    CircleOfLinks Active Member

    Messages:
    306
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #7
    well my site hasnt changed speed. Its running the same with the script. the .js file is only like 4kbs so its very small.

    hope it helps
     
    CircleOfLinks, Dec 8, 2007 IP