[thelist] What language?

Joe Crawford jcrawford at avencom.com
Thu Jan 25 14:24:40 CST 2001


Jake Stetser wrote:
> Javascript for the function, and they're manipulating a Microsoft CSS
> filter. Only works in IE4+ for the PC. just doesn't appear transparent on
> anything else. :)
> 
> function menuTrans(mId, grade) {
>   if (ie4 && !ie4mac) {
>     eval('document.all.' + mId + '.style.filter="alpha(opacity=' + grade +
> ')"');
>   }
> }

That is some interesting source code... also note that they have some
additional code for windows 2000 to disable it. More evidence that even
if all we have to code for is IE we still have cross-Windows bugs to
deal with.

    if (ie && win2k) {  // Windows 2000 IE fix -- will not correctly
hide semi-transparent elements
      if (vizProp == SHOW) { menuTrans('lM' + imNum,85); }
      else { menuTrans('lM' + imNum,100); }
    }

I guess the way to reference an arbitray object named "myElementName"
like this would be something like:

document.all.myElementName.style.filter=alpha(opacity=85)

Neat, but real specific, and I think an IE specific filter, rather than
something in the CSS spec.

	- Joe
--
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher




More information about the thelist mailing list