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 10-11-2007, 06:08 AM How do I do this?
Defies a Status

Posts: 3,420
Trades: 0
OK I've finally got image transparency in IE6 working on a logo on my redesign but I've still got the original image (not transparent) over the top of it. I want to block the original image in IE6, and then show the transparent image instead.

Here is the CSS that's generating the new transparent image for IE6:

Code:
img {filter:progid:DXIMageTransform.Microsoft.AlphaImageLoader (src="http://whymhost.co.uk/redesign/logo.png", sizingMethod="crop";}
The current XHTML is shown below:

HTML Code:
<img class="floatLeft" src="http://whymhost.co.uk/redesign/logo.png" width="193" alt="Whym Hosting logo" height="100" />
The template I'm working all of this on is here and the IE6 CSS file is here.

If someone could help, it would be very much appreciated.

Dan
CSS4Life is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-11-2007, 06:36 AM Re: How do I do this?
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
What exactly are you trying to do? Are you saying that you have two different images that appear in the same place, depending on the browser you're using? If that's the case, then you would just use Browser-specific comments.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 10-11-2007, 06:44 AM Re: How do I do this?
Defies a Status

Posts: 3,420
Trades: 0
Well try this:

http://www.netrenderer.com and enter http://whymhost.co.uk/redesign.

Make sure you've chosen IE6. You'll then notice that there is part of the transparent image above the non-transparent one. Firefox and IE7 support transparent PNGs but IE6 doesn't. I used a hack/filter in IE6 to get it to support transparent PNGs but now it's still displaying the non-transparent one too.

I want it to display the non-transparent one to be hidden in IE6, but to show in FF and IE7.
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-11-2007, 07:10 AM Re: How do I do this?
maxxximus's Avatar
Extreme Talker

Posts: 219
Name: Rob
Location: UK
Trades: 0


There is only one image. Your fix is not working dude.
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 10-11-2007, 07:16 AM Re: How do I do this?
Defies a Status

Posts: 3,420
Trades: 0
Have you tried netrenderer.com as I mentioned?

If you have, then you will see a tiny part of the transparent logo above the non-transparent one. I have played around with this earlier and I got it mostly to work by messing up the XHTML, but this meant that FF or IE7 couldn't see the image at all.

The method does work, I just need to be able to get rid of the non-transparent one from displaying in IE6
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-11-2007, 11:10 AM Re: How do I do this?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You could cheat and not use the image tag.
Put the image as the background in a div file, and then in IE6 set background: none; and then have the fix.

Something like:
Code:
#logo {
     background:  URL(../images/logo.png) top left no-repeat;
     width:  193px;
     height:  100px;
     float:  left;
}
... this is IE6 stuff ...
#logo {
      background:  none;
      ugly PNG code here.
}
<div id="logo"></div>
__________________

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 10-11-2007, 11:43 AM Re: How do I do this?
Defies a Status

Posts: 3,420
Trades: 0
Adam, you are a genius!!!

Many many many many many thanks! (I've wasted ages trying to get this to work before now!)
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-11-2007, 03:12 PM Re: How do I do this?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
And that's why you should always ask here first. One of us has probably gone through the same sort of crap. No point in two of us doing that.

Glad you got it going, buddy.
__________________

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 10-11-2007, 03:17 PM Re: How do I do this?
Defies a Status

Posts: 3,420
Trades: 0
This method is very useful too for the future - if I design other sites with transparent PNGs, I'll know what to do

Thanks again
CSS4Life is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I do this?
 

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.75551 seconds with 12 queries