| FORUM |
| Post Reply |
|
|
Blasted Internet Explorer
|
|
| Total Views: 156 - Total Replies: 8 | |
|
Feb 25 2008, 11:34 am - By Dartz
|
|
|
As usual, IE decided to act up. This time, it turns out that it can't handle alpha channels in a PNG file. In other words, my forum logo is ruined with an ugly background in IE, despite working fine in Firefox.
Any advice other than "use a jpeg to merge it into the background"? Like, a piece of code that shows the picture based on what browser you're using? I'm not messing with a perfectly good logo just to conform to some MS employees stupidity. |
|
|
|
|
Feb 27 2008, 4:16 am - Replied by: sanjay
|
|
|
Don't have the idea, advice is try various other methods and hope one will definitely resolve your problem.
|
|
Feb 29 2008, 5:07 pm - Replied by: Tom_Brown
|
|
|
This tutorial shows you how to solve the problem drop me a msg if you cant get it to work.
http://homepage.ntlworld.com/bobosola/ Tom |
|
Mar 01 2008, 12:41 pm - Replied by: Dartz
|
|
|
Thanks, but it says this error.
The file you tried to save generated the following error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in index.template.php on line 81 Here's the line in question. var imgID = (img.id) ? "id='" + img.id + "' " : "" |
|
Mar 01 2008, 1:27 pm - Replied by: Tom_Brown
|
|
|
i have sent you my email address Dartz if you want me to take a look at your code send be a copy of the files.
Tom |
|
Mar 01 2008, 4:08 pm - Replied by: Dartz
|
|
|
I'll send a copy of the HTML, thankyou. I appreciate any help you can give me, seriously, I really do. Hell will freeze over before I conform to the flaws of IE. XD
|
|
Mar 03 2008, 4:35 am - Replied by: Tom_Brown
|
|
|
Ok im at work so cannot access the files you sent me but i have made up a test page an checked it on all browsers/platforms, it work perfectly. If my example doent run their is a problem with your setup not the script.
All you need to do is place pngfix.js the same directory as the page containing the png and replicate the IE include as in the header of my example. Shout if you are still having issues. Download the test page |
|
Mar 03 2008, 1:00 pm - Replied by: Dartz
|
|
|
Ahhhhhh, now I get what I was doing wrong, I wasn't putting it in the same directory. I'll have it fixed in a few moments.
Wait, by same directory, you mean where the picture is uploaded or where the picture is being viewed? Since I have a blog hosted on the domain, I use that for file uploads. |
|
Mar 04 2008, 10:17 am - Replied by: Tom_Brown
|
|
|
Well it doesn't have to be the same directory but if its not you need to change the path in the script. That can be a little bit complicated if you need to go up and down several directory chains so i always test in the same directory first.
But to answer your question i mean that the script, image and html page need to be in the same directory for the script to work unmodified. |
| Post Reply |
|








