X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Quick question (https://forum.x-cart.com/showthread.php?t=43181)

xtestedx 10-23-2008 01:12 AM

Quick question
 
hey i want to use 24bit transparent png's for backgrounds and i knoe ie 6 doesnt support it. I knoe theres a smarty plugin, do i have to install it? how do i use it?
Heaps of ppl cant access my site !!! gay M$
Thanks, Chris

balinor 10-23-2008 03:07 AM

Re: Quick question
 
You lost me - what does a Smarty plug-in have to do with IE 6 png support?

Holub 10-23-2008 04:19 AM

Re: Quick question
 
No, not Smarty plugin but JS fix:
If I remember correctly you should exec function for element you which to fix, for example: <script>fixPNG(document.getElementById('YourPNGTra nsparentImage'));</script>
Code:


function fixPNG(element)
{
        if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
        {
                var src;

                src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i)
                if (src)
                {
                        src = src[1];
                        element.runtimeStyle.backgroundImage="none";
                }
               
                if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='crop')";
        }
}


Also you can fix it via CSS:

Code:

background: url('/img/fur/input-text/bg.png') 0 0 no-repeat;
 -background-image: none;
 -filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/img/fur/input-text/bg.png,sizingMethod=crop);


xtestedx 10-23-2008 09:14 PM

Re: Quick question
 
yes that's what i was looking for! however people using ie 6 are still unable to view my site!! Can someone look over it for me?
looks petty stock standard to me is there a website that can tell me compatibility problems?

site www.slixaustralia.com.au

Holub 10-23-2008 11:56 PM

Re: Quick question
 
I've browser over you site under IE 6.0 and not found any problems. There are no compatibility problems in my browser.

xtestedx 10-24-2008 07:48 PM

Re: Quick question
 
I worked out what the offending thing was for ie6. it was the javascript in home.tpl is there a different way to link java ? ? other than
<script type="text/javascript" language="javascript" src="{$SkinDir}/js/fade.js"></script> cause that ^ doesnt work.

the only way the script works is if the script is in the <head> and thats what causes problems in ie 6.


All times are GMT -8. The time now is 01:41 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.