Revision: 52775
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 1, 2011 15:08 by jackkeller
Initial Code
/*Making an element transparent can be accomplished using only CSS,
but requires about five lines of code. With jQuery, we can achieve
transparency with just one line: */
$('selector').css('opacity', 0.5);
/* below is the CSS way, and it's sloppy
selector {
filter: alpha(opacity=50); /* internet explorer * /
-khtml-opacity: 0.5; /* khtml, old safari * /
-moz-opacity: 0.5; /* mozilla, netscape * /
opacity: 0.5; /* fx, safari, opera * /
}
*/
Initial URL
Initial Description
Initial Title
Cross Browser Opacity
Initial Tags
jquery
Initial Language
JavaScript