Guest Deeswift Posted February 16, 2005 Share Posted February 16, 2005 http://bink.nu/Article3461.bink Don't know why I'm posting this... maybe no one will even read it. Anywayz, unless it has tabbed browsing, shitloads of features / extensions and is better than Firefox, I'm less than interested. When are M$ gonna catch on that they need tabbed browsing? And will they fix the alpha transparency issue? Guess not. It's been 8 years already. Quote Link to comment Share on other sites More sharing options...
dissonance Posted February 16, 2005 Share Posted February 16, 2005 the open source game...will always be leaps and bounds ahead of the closed source game. Quote Link to comment Share on other sites More sharing options...
Gizmo Posted February 16, 2005 Share Posted February 16, 2005 And will they fix the alpha transparency issue? Guess not. It's been 8 years already. Fuck waiting for Microsoft. The next version of skratchworx uses PNG heavily. Looks gorgeous in everything bar Explorer for PC. I've got some code in there that forces the transparency but it's still not quite right. Quote Link to comment Share on other sites More sharing options...
Guest Deeswift Posted February 16, 2005 Share Posted February 16, 2005 Thing is, it'd probably take them about 2 fucking minutes to fix this 8 year old problem! We know that alpha transparency can work just fine in Firefox, so why not IE? They are aware of the issue (it was supposed to be fixed in IE4), so I don't understand what's taking them so long. I might write to them and nag them until they give in. BTW, what kind of code did you use to force it Giz? Quote Link to comment Share on other sites More sharing options...
Gizmo Posted February 16, 2005 Share Posted February 16, 2005 Adding this under the head tag should do it: <!--[if gte IE 5.5000]><script language="JavaScript">function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher. { for(var i=0; i<document.images.length; i++) { var img = document.images var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML i = i-1 } } }window.attachEvent("onload", correctPNG);</script><![endif]--> To see alpha in action, check http://www.skratchworx.com/pngtest.htm. I've also taken this code out and uploaded a page as well - http://www.skratchworx.com/pngtest_nocode.htm - I'm on my Mac rigfht now so I don't know if the nocode version is working or not! Quote Link to comment Share on other sites More sharing options...
Guest Deeswift Posted February 16, 2005 Share Posted February 16, 2005 Thanks for taking the time to post that up, Giz. Could be useful! The png test page works perfectly in IE, fair play. Quote Link to comment Share on other sites More sharing options...
Guest Deeswift Posted February 19, 2005 Share Posted February 19, 2005 I can't figure out where to put this code. Any ideas? Quote Link to comment Share on other sites More sharing options...
Gizmo Posted February 19, 2005 Share Posted February 19, 2005 You should simply need to add it into the top of your html page - mine are in the templete. Alternatively: http://forums.macrumors.com/archive/index.php/t-50459.html Try that - a little different to the code I posted but should work just the same Quote Link to comment Share on other sites More sharing options...
Steve Posted February 19, 2005 Share Posted February 19, 2005 I tried adding it to the top of the header code here and it just gave an SQL - cannot connect to database error. Quote Link to comment Share on other sites More sharing options...
Guest Deeswift Posted February 19, 2005 Share Posted February 19, 2005 Yeah, same for me. I was looking around the net for code and stuff but I got too fucking confused. Fuck it. Ha. M$ wins again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.