|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
IE6 .png transparency?
anyone know the absolute best way to deal with IE6 and it's lack of support for transparency? I know of a couple methods but they impact load times.
And one more thing, how can I deliver it to ONLY IE6 users? I've tried using <!--[if IE 6]> Special instructions for IE 6 here <![endif]--> but that doesn't hit for just IE6 for whatever reason IE7/8 pic it up too :/ |
|
|
|
|
|
#2 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
really? nobody? wow...
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Gif...........
__________________
![]() ![]()
|
|
|
|
|
|
#5 | |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
lmao... yeah ok... obviously you don't know the difference between gifs and .pngs when it comes to transparency
Quote:
|
|
|
|
|
|
|
#6 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
check out these links also good reads
http://www.ajaxonomy.com/2008/web-de...ore-with-ie7js http://www.sohtanaka.com/web-design/...arency-in-ie6/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
|
|
|
|
#7 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
Quote:
![]()
__________________
![]() ![]()
|
|
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: Mar 2007
Posts: 7,771
|
If you knew what the fuck programming was you'd use imagemagick based on the browser.
__________________
![]() ![]()
|
|
|
|
|
|
#9 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
i'm not "fucked up" over anything sortie. I have several solutions but just looking for MORE options.
imagemagick based on the browser? LOL... thanks for the links fris |
|
|
|
|
|
#10 |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
<!--[if lt IE 7]>
... <![endif]-->
__________________
|
|
|
|
|
|
#11 |
|
Half man... Half Amazing!
Industry Role:
Join Date: Sep 2002
Posts: 13,958
|
ive used pngFix many times without any issues. Whats the problem?
|
|
|
|
|
|
#12 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
|
|
|
|
|
|
#13 |
|
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
I really hate IE
__________________
I'm just a newbie. |
|
|
|
|
|
#14 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
|
|
|
|
|
|
#15 |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
for those that don't know, pngfix works really bad with IE6. The one below is the best solution by a long mile (probably the only one that really works). And yes, that's the conditional code to spot IE6 and older and not affect IE7 and newer
Code:
<!--[if lt IE 7]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters))
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
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]-->
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
|
|
|
|
|
#16 |
|
Confirmed User
Industry Role:
Join Date: Aug 2004
Posts: 1,824
|
you should be using
<!--[if lt IE 7]><![endif]--> (if less than version 7....) As for png fix there are tons out there just search. None are perfect and all affect loading time so just find one you're happy with.
__________________
icq 157542142 |
|
|
|
|
|
#19 |
|
Bollocks
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,793
|
Have you got MultipleIE installed? Because apparently if you've got multiple versions of IE on one machine then the conditional comments behave as though you're running the highest version.
__________________
Interserver unmanaged AMD Ryzen servers from $73.00 |
|
|
|
|
|
#21 |
|
Confirmed User
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
|
<!--[if IE 6]>
should work just for ie 6, something on your end must be wrong. also, i typically use unit png fix for a png ie6 fix (when im not just popping up a modal saying you suck for ie6 users)
__________________
![]() |
|
|
|
|
|
#22 |
|
Confirmed User
Join Date: Feb 2003
Posts: 6,040
|
I use a little javascript called SuperSleight and it works great.
<!--[if lte IE 6]> <script type="text/javascript" src="supersleight-min.js"></script> <![endif]--> <script language="javascript"> function divclose() { supersleight.init() } </script> Get the script here: http://24ways.org/code/supersleight-...persleight.zip Only effects IE6. Works perfect for me. -P |
|
|
|
|
|
#23 |
|
Confirmed User
Join Date: Feb 2003
Posts: 6,040
|
Also checkout this page for a good discussion of the different techniques, including Supersleight.
http://24ways.org/2007/supersleight-...ent-png-in-ie6 |
|
|
|
|
|
#24 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
|
|
|
|