|
| |
User Groups : Forums : SiteExperts :
HTML and CSS
:  | Use standard CSS in IE? <html> <head> <style type="text/css" id="CSS3"> img {opacity: 0.5;} img.full {opacity: 1;} </style> <script> (function(){ var b=window.navigator.userAgent.match(/MSIE (\d)/); if(b&&b[1]<=8){ var ss=document.getElementById('CSS3').styleSheet; var cssText=ss.cssText; var re=/opacity\s*:\s*(.*)/ig;
cssText=cssText.replace(re,function(o,a){ a=Number(a); if (a>=0&&a<=1) return "filter:alpha(opacity="+a*100+")";});
if(cssText!=ss.cssText) ss.cssText=cssText; }; })(); </script> </head> <body> <img onmouseover="this.className='full'" onmouseout="this.className=''" src="http://www.siteexperts.com/gifs/selogo.gif"></img> </body> </html>Started By simonleung on Oct 8, 2011 at 7:36:09 AM This message has been edited. |  | | 2 Response(s) | Reply |
To respond to a discussion, you must first logon.
If you are not registered, please register yourself to become a member of the SiteExperts.community.
|