Just cleaning out OOOOOOOLLLLDDDDD emails.... I use this for background
image pngs. You can either use a transparent gif 1px by 1px in an <img> tag
with the same width and height as the png you want to disaply, or set the
width: and height: styles along with it.
<cfscript>
function pngbgstyle(img)
{
if (findnocase("msie", cgi.user_agent))
{
return "filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='#img#',
sizingMethod=scale)";
}
else
{
return "background-image:url(#img#)";
}
}
</cfscript>
<div
style="#pngbgstyle('#request.imageroot#/transpng_tan.png')#;width:100px;heig
ht:100px;"></div>
You'
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 14, 2005 4:54 PM
To: CF-Talk
Subject: ot: transparent png for ie hack
anyone know of one that actually works?
~Dave the disruptor~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226586
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54