Current location: Hot Scripts Forums » General Web Coding » CSS » [SOLVED] why does IE6 do this!!!!


[SOLVED] why does IE6 do this!!!!

Reply
  #1 (permalink)  
Old 02-19-09, 01:31 PM
hanzi's Avatar
hanzi hanzi is offline
Newbie Coder
 
Join Date: Aug 2008
Location: South Africa
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy [SOLVED] why does IE6 do this!!!!

My site works perfectly on FF and even IE7 but IE6 has a problem with my png images. They all display like in the "wrong" image below. I can change it to jpg but I want the transparency on some images.

The "right" image is what is should look like.

Thanx
Attached Images
File Type: jpg wrong.jpg (31.5 KB, 139 views)
File Type: jpg right.jpg (31.3 KB, 146 views)
Reply With Quote
  #2 (permalink)  
Old 02-19-09, 01:53 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Reply With Quote
  #3 (permalink)  
Old 03-08-09, 04:03 AM
dgreenhouse's Avatar
dgreenhouse dgreenhouse is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: San Francisco
Posts: 457
Thanks: 0
Thanked 3 Times in 3 Posts
Nico:

Thanks for the 24ways link! Some great stuff in there...
Reply With Quote
  #4 (permalink)  
Old 03-09-09, 08:12 AM
whatashareman whatashareman is offline
Newbie Coder
 
Join Date: Mar 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
u shuld use pngfix.js to fix the png issue in IE

Quote:

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 + ";"
+ "filterrogidXImageTransform.Microsoft.AlphaIma geLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
Reply With Quote
  #5 (permalink)  
Old 04-03-09, 01:39 AM
mk456's Avatar
mk456 mk456 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Reply on why does IE6 do this!!!!!!!

Yup, I googled it and found some software by terdosoft. It does every IE from 1-6. Thing is I want 6 and 7. Thing is if I load up IE6 with it and goto help to see what version it is it still says IE7.

So, I want to know how the pros do it. Thanks for your link but I would like to be able to test drive my sites in IE6/7 and FF.

Isnt there a specific web designers tool that lets you do this?
__________________
Website Traffic
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Firefox and IE 7 fine but layout in IE6 is out by a few pixels Frogger CSS 2 11-24-08 05:47 PM
[SOLVED] help: IE6 fluid layout problem (hidden left content bar) punjabisingh CSS 1 06-21-08 07:58 PM
ie6 bahaviour different to firefox peterT JavaScript 3 12-22-06 06:27 AM
PNG24 Alpha problems with IE6 scott2500uk HTML/XHTML/XML 5 09-16-06 03:14 PM
Problem with AspSmartUpload and IE6 abeacon4u ASP 0 07-18-06 07:28 AM


All times are GMT -5. The time now is 02:18 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.