Sam, I understand your pain. Longstanding problems with IE like PNG support
make me want to kill someone!!
I also had some of the concerns you did about PNG scripts. I hacked this
one together and found it very useful. It does not work on css-specified
background images. Best of luck.
function IEPngs(pngList,blankGifPath)
{
var loaderSrc;
for( var i=0; i<pngList.length; i++ )
{
loaderSrc = pngList[i].src;
pngList[i].src = blankGifPath;
pngList[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='"+loaderSrc+"',sizingMethod='scale');";
}
}
if( document.all )
IEPngs($$('#png_container img'),'images/blank.gif');
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sam
Sent: Monday, June 19, 2006 9:00 AM
To: [email protected]
Subject: RE: [Rails-spinoffs] PNG and Alpha-Transparency
I'm looking over these scripts for PNG transparency. So many variables, so
little time...
Things to consider: size of the code, reliability, but what is bothering me
is some of the scripts modify the <img> to the point that I am concerned
about whether the ID I have assigned to the image, along with the events,
will survive. This would kill my application.
Of course I can test but first...
I normally use "View Generated Source" from the NLIS (in IE) or
http://chrispederick.com 's "Web Developer" for Firefox to view the HTML
additions and updates made by JavaScript. Both have worked flawlessly in
the past.
However, using Dean Edward's IE7, the NLIS "View Generated Source", shows no
changes to the HTML at all. This can't be true, so I have two problems.
Why is NLIS not showing the changes, and (2) What is Dean Edwards method?
Does it <span> the <img> and nuke the <img src="blank.gif"> like the other
solutions?
Last, it seems like the solutions I've tested leave IE 6 in a "loading page"
state. The status bar shows it's loading the png image, and the cursor is
an hourglass when hovered on the browser menus (but the browser is not
"locked") yet the page appears fully rendered. I wonder what's up with
that, and that makes (3) problems that need answers.
I'm digging away, if anyone knows the answer, it could save me some time.
Sam
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs