using PNG images in IE
Moderator: General Moderators
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
using PNG images in IE
Hello,
I am trying to create transparent images that i can use with different colour backgrounds. Now the obvious would be to use gif but trying to get gif images with a "smooth" edge while remaining transparent is not working to well. I am using FIREWORKS and PNG32 seems to just the right thing. The problem is that in IE png32 images are showing up with a grey background while in FIREFOX it shows up correctly.
Can any one recommend me a suitable workaround for this?
Kendall
I am trying to create transparent images that i can use with different colour backgrounds. Now the obvious would be to use gif but trying to get gif images with a "smooth" edge while remaining transparent is not working to well. I am using FIREWORKS and PNG32 seems to just the right thing. The problem is that in IE png32 images are showing up with a grey background while in FIREFOX it shows up correctly.
Can any one recommend me a suitable workaround for this?
Kendall
This should do the trick:
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
quote;))
{
header("Location: http://www.getfirefox.com");
}
t = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
trick:
trick:
lient,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
uote;))
{
header("Location: http://www.getfirefox.com"e;);
}
1dd7ffe3d7]
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"e;))
{
header("e;Location: http://www.getfirefox.com"e;);
}
SERVER['HTTP_USER_AGENT'];
if(strstr($client,"e;MSIE"e;))
{
header("e;Location: http://www.getfirefox.com"e;);
}
r("Location: http://www.getfirefox.com");
}
R_AGENT'];
if(strstr($client,"MSIE"))
{
heade trick:
'HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
trick:
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}{
header("Location: http://www.getfirefox.com");
}
quote;))
{
header("Location: http://www.getfirefox.com");
}
t = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}{
header("Location: http://www.getfirefox.com");
}
uote;))
{
header("Location: http://www.getfirefox.com"e;);
}
1dd7ffe3d7]
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"e;))
{
header("e;Location: http://www.getfirefox.com"e;);
}
SERVER['HTTP_USER_AGENT'];
if(strstr($client,"e;MSIE"e;))
{
header("e;Location: http://www.getfirefox.com"e;);
}
r("Location: http://www.getfirefox.com");
}
R_AGENT'];
if(strstr($client,"MSIE"))
{
heade trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
LOL... Handy to know :P1111;'HTTP_USER_AGENT'];pickle wrote:This should do the trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT']; if(strstr($client,"MSIE")) { header("Location: http://www.getfirefox.com"); }
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]
LOL... Handy to know :Pandy to know :Pclient,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]
LOL... Handy to know
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}LOL... Handy to know
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}LOL"pickle"]This should do the trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}LOL... Handy to know :PER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]
LOL... Handy to know :Plient,"MSIE"))
{
header("Location: http://www.getfirefox.com"e;);
}
[/quote]
LOL... Handy to know :Pld do the trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}LOL... Handy to know :P1]
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"e;MSIE"e;))
{
header("e;Location: http://www.getfirefox.com"e;);
}
[/quote]
LOL... Handy to know :PIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quot = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"e;))
{
"pickle"]This should do the trick:
Code: Select all
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}LOL... Handy to know
$client = $_SERVER['HTTP_USER_AGENT'];
if(strstr($client,"MSIE"))
{
header("Location: http://www.getfirefox.com");
}
[/quote]
LOL... Handy to know
http://koivi.com/ie-png-transparency/ has an excellent explanation of the problem, the cause (IE doesn't do png alpha transparency correctly), and mentions a solid php solution to the issue.
Another poster mentioned Sleight, which I personally think is a better solution because its mostly js-oriented.
There are numerous other solutions to the problem, just google IE png transparency, and you'll find plenty.
IE7 apparently fixes the problem: http://blogs.msdn.com/ie/archive/2005/04/22/410963.aspx , so we can all look forward to helping extend Microsoft's monopoly by encouraging users to upgrade their OS to get a working browser.
Of course, you could just tell them to get Firefox.
Another poster mentioned Sleight, which I personally think is a better solution because its mostly js-oriented.
There are numerous other solutions to the problem, just google IE png transparency, and you'll find plenty.
IE7 apparently fixes the problem: http://blogs.msdn.com/ie/archive/2005/04/22/410963.aspx , so we can all look forward to helping extend Microsoft's monopoly by encouraging users to upgrade their OS to get a working browser.
Of course, you could just tell them to get Firefox.
The phrasing was definitely ambiguous. If I said the batman DVD should be out, that would usually lead you to believe you could go buy it today - not in the future.theda wrote:Note: Should. Not would. Difference there buddy. A belief is different than a fact. +1 For the home team.
Thats the meaning I took it at.