Larry O'Brien wrote:
> There are many googlable discussions of the issue, but I don't know of a
> simple-> to-use, foolproof way around it. (I'd be happy to hear a solution.)
Just saw a solution [1] for IE (and Opera?), isnt that coincidence ;)
<img id="imgCircle" SRC="circle.png"
width="200" height="200"
style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='circle.png', sizingMethod='scale');" >
<script language="JavaScript" type="text/javascript">
//<!--
var agt=navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
if ( is_ie )
{
imgCircle.src="blank.gif";
}
//-->
</script>
In case of IE (and Opera) the real image source is replaced with a blank image.
Also make sure you have set the width and height of the image.
// Ryan
[1] http://redvip.homelinux.net/varios/explorer-png-en.html
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
Essential .NET: building applications and components with C#
November 29 - December 3, in Los Angeles
http://www.develop.com/courses/edotnet
View archives and manage your subscription(s) at http://discuss.develop.com