Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 11-18-2006, 04:43 AM Using PNG images
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
I'm interested in using png images on a website I am developing right now. I need them to use alpha transparency to get the effect I want and I know that this was only now implemented in IE7.

I've found a way to make it look pretty good without alpha transparency so I basically want to show the png image if the browser supports it (IE7/Mozilla/etc) or a different jpeg image and add an image border if it doesn't.

I'm thinking this may need javascript, I'm hoping not, but if so...would a moderator be so kind as to move.
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-18-2006, 06:12 AM Re: Using PNG images
Smaaz's Avatar
Experienced Talker

Posts: 41
Trades: 0
You would need to do this with javascript or serverside, but I think it is not worth the trouble since most browsers can handle png images.
__________________

Please login or register to view this content. Registration is FREE
~~
Please login or register to view this content. Registration is FREE
~~
Please login or register to view this content. Registration is FREE
~~
Please login or register to view this content. Registration is FREE
Smaaz is offline
Reply With Quote
View Public Profile Visit Smaaz's homepage!
 
Old 11-18-2006, 07:10 AM Re: Using PNG images
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
Quote:
Originally Posted by Smaaz View Post
You would need to do this with javascript or serverside, but I think it is not worth the trouble since most browsers can handle png images.
Yes, most browsers, but Internet Explorer prior to IE 7 does not support PNG alpha transparency, and I would say that constitutes a rather large group.
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-20-2006, 10:18 AM Re: Using PNG images
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
IE7 DOES finally support alpha transparency in PNGs. Anything below that does not and requires a scripting solution. Since MS has pushed out IE7 as a critical update 2 weeks ago, it's going to hit a lot more pc's at once than you might think or that might if it were not marked as 'critical'.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-20-2006, 10:22 AM Re: Using PNG images
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
What you can always do is add this line to your CSS to get IE6 (and I believe 5.5) to support PNG images. It's NOT standards-compliant but it works.
Code:
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='your image here');
Browsers such as Firefox will ignore it completely. I'm not sure about IE7 yet.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-20-2006, 10:41 AM Re: Using PNG images
kreoton's Avatar
Extreme Talker

Posts: 194
Trades: 0
there is javascript witch fixes png trancpency problem here is link http://homepage.ntlworld.com/bobosola/index.htm
__________________

Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
kreoton is offline
Reply With Quote
View Public Profile Visit kreoton's homepage!
 
Old 11-20-2006, 11:51 AM Re: Using PNG images
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
Awesome! I was thinking that I would have to lower my site quality for old IE users but this is great.
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using PNG images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42258 seconds with 12 queries