SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : All Topics : HTML and CSS :

Previous DiscussionNext Discussion
 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

Earlier Replies | Replies 2 to 2 of 2 | Later Replies
on (# 2)


Earlier Replies | Replies 2 to 2 of 2 | Later Replies

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.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.