Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Transparent Menu


Message #1 by "Coday, Nicholas J" <nicholas.j.coday@i...> on Wed, 16 May 2001 13:02:29 -0700
Hi,

The quickest way to find out how a fancy web site effect is achieved is to 
click on View Source and look through the code.  If you do that for the 
intel site you'll find the following function:

function menuTrans(mId, grade) {
  if (ie4 && !ie4mac) {
    eval('document.all.' + mId + '.style.filter="alpha(opacity=' + grade 
+ ')"');
  }
}

I think this may only be specified for Win2K machines but it's an 
interesting effect.  Thanks for pointing it out.  The code specifies 
the 'grade' as either 85 or 100 which is the transparency of the menu 
depending on whether it's an appropriate browser.

Have fun!

Stuart Anderson

> 
> Could someone tell me the transparent menu item effect is achieved on the
> Intel.com website? It only work in IE4+ I know.
>   
> Thanks, Nicholas Coday

  Return to Index