+ Reply to Thread
Results 1 to 10 of 10
  1. Join Date
    May 2005
    Location
    Shrewsbury
    Posts
    2,456
    Thanks
    1
    Thanked 38 Times in 27 Posts

    PNG 24 overlay in IE 6

    Can anyone help or offer some advice on this problem we are having

    Im trying to add a "flag" using CSS overlays so that we mark up for customer which items are new, which are existing stock but with new colours etc.

    for example if you look at the sloggi underwear here
    Sloggi mens underwear

    You will see some that have the "new" in with the picture , which is a pain in the rear to keep changing when something has been classed as not new

    Now I know we can just do this with a .gif and that would be the easy way but i'd like to use PNG 24 as i can achieve a nice drop shadow with it.

    Problem is that IE 5.5 and 6 don't render PNG's properly so does anyone know of a workaround that would work
    Designer Men's underwear, swimwear, socks and t-shirts click to join our program deadgoodundies.com
    up to 20% commission | full product feed | content units | 90 day cookie

  2. Join Date
    Aug 2003
    Location
    Cambridge
    Posts
    1,905
    Thanks
    13
    Thanked 12 Times in 12 Posts

    Re: PNG 24 overlay in IE 6

    Hi Adam
    Try this
    IE PNG Fix - TwinHelix
    I have used it before - ping me on skype if you need a hand

  3. Join Date
    May 2005
    Location
    Shrewsbury
    Posts
    2,456
    Thanks
    1
    Thanked 38 Times in 27 Posts

    Re: PNG 24 overlay in IE 6

    Cheers,
    I'll pass that on to the people who are doing the modification

  4. Join Date
    May 2007
    Posts
    276
    Thanks
    4
    Thanked 40 Times in 27 Posts

    Re: PNG 24 overlay in IE 6

    If your not too bothered about validation in IE 6 you can use the alphaloader which is better in my opinion than a javascript solution if you only need to apply transparency to one or a few elements.

    In your IE6 specific stylesheet add this to the element (I'm assuming its a div):

    Code:
    div.your_element {
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='full url to the png file', sizingMethod=crop');
    zoom:1;/*Dirty hasLayout hack for IE 6*/
    background:transparent;
    }
    Hope that is helpful
    Last edited by pete_coles; 18-07-08 at 10:38 AM. Reason: I can't spell

  5. Join Date
    May 2005
    Location
    Shrewsbury
    Posts
    2,456
    Thanks
    1
    Thanked 38 Times in 27 Posts

    Re: PNG 24 overlay in IE 6

    Ok thanks for the replies.
    We got our developers to implement the method that scifind suggested BUT there is a problem.

    It seems that the PNG is loading before the thumbnail it's overlayed on so initially there is a brief period where the grey border is still visible and also once it's loaded if you roll your cursor over it the thumbnail disappears totally.
    The developers we use (x-cart/ the same people who built the ecommerce software) say that this can't be fixed but they can just disable the corner overlays for IE 6 users, which kind of defeats the object of it.
    If anyone has IE 5.5 or IE 6 installed you can see what I mean by going here
    Men's mini micro midi tanga and bikini briefs
    2nd and third thumbnail across have the PNG applied.

    Anyone got any ideas or are the developers right it can't be fixed.
    Designer Men's underwear, swimwear, socks and t-shirts click to join our program deadgoodundies.com
    up to 20% commission | full product feed | content units | 90 day cookie

  6. Join Date
    Jul 2008
    Location
    Bracknell, Berks
    Posts
    49
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: PNG 24 overlay in IE 6

    Evening,

    I dug out my old browsers and had a look:

    IE5.5 SP2 (5.51.4807.2300) - no PNG overlay, screenshot attached.
    IE6 SP1 (6.0.2800.1106) - test page and live site crash browser.
    IE7 (7.0.5730.11IS) - the thumbnails don't vanish when you rollover, but the cursor icon doesn't change (on the to with the PNG overlays, fine on the others)
    FF2 Gecko/20071025 Firefox/2.0.0.9 - no problems (lovely Firefox!)

    The two older versions of IE are standalones, so they behave exactly the same way as an installed browser.

    Hope that helps,
    Matt
    Attached Images

  7. Join Date
    May 2005
    Location
    Shrewsbury
    Posts
    2,456
    Thanks
    1
    Thanked 38 Times in 27 Posts

    Re: PNG 24 overlay in IE 6

    OK cheers for the info.
    We've got IE 6 installed on one of the PC in the office just for testing purposes which it shows the PNG's but thumbnails go when rolled over so not sure why it crashed your browser.
    I might have to just bite the bullet and use gifs instead or just hide the feature from IE5 and 6 users (only 5% of our visitors are using those anyway)
    Designer Men's underwear, swimwear, socks and t-shirts click to join our program deadgoodundies.com
    up to 20% commission | full product feed | content units | 90 day cookie

  8. Join Date
    Jul 2008
    Location
    Bracknell, Berks
    Posts
    49
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: PNG 24 overlay in IE 6

    Have you tried reapplying the background image with a:hover?

  9. Join Date
    May 2005
    Location
    Shrewsbury
    Posts
    2,456
    Thanks
    1
    Thanked 38 Times in 27 Posts

    Re: PNG 24 overlay in IE 6

    No idea as im not doing the work personally but i'll pose the question to the developers

  10. Join Date
    May 2005
    Location
    Shrewsbury
    Posts
    2,456
    Thanks
    1
    Thanked 38 Times in 27 Posts

    Re: PNG 24 overlay in IE 6

    Got it sorted now, thanks for everyones help
    This modification will certainly make my life a lot easier

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.5.0 RC1 PL1