How do they do this?

Discussion in 'HTML & Website Design' started by cbc58, Aug 19, 2010.

  1. #1
    If you go to this site: http://www.agentappeal.com and then click on agent signup or login, there is a link in the upper right hand corner of the page that turns orange and then fades out. It is eye-catching for someone using the site and I am trying to figure out how they do this. I have sent a message to them asking how they do it but they will not reply.

    Anyone know how to do this ?
     
    cbc58, Aug 19, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    They are using prototype/scriptaculous javascript for this effects.

    I would use jQuery for this effect ;)

    I do not know prototype/scriptaculous js library

    Their code.

    
    
    <!--
    
    function OnBaseBodyLoad()
    {
    try {
    new Effect.Highlight('agenttag', { startcolor: '#FF6600', endcolor: '#ffffff' });
    } catch (e){}
    try {
     if (Object.isFunction(OnBodyLoad))
     {
     OnBodyLoad();
     }
     } catch (e){}
    }
    
    Code (markup):
    The div id is agenttag.
     
    CSM, Aug 19, 2010 IP