Jump to content

IE7


Guest Deeswift

Recommended Posts

Guest Deeswift

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest Deeswift

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...