Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Quick question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-23-2008, 01:12 AM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default 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
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #2  
Old 10-23-2008, 03:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Quick question

You lost me - what does a Smarty plug-in have to do with IE 6 png support?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-23-2008, 04:19 AM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default 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);
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #4  
Old 10-23-2008, 09:14 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default 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
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #5  
Old 10-23-2008, 11:56 PM
  Holub's Avatar 
Holub Holub is offline
 

X-Adept
  
Join Date: Jan 2008
Posts: 432
 

Default 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.
__________________
Regards,
Anthony Holub

X-Cart Skins Store
- twenty two different skins available;
- both 4.1.x and 4.2.x versions compatible;
- refresh you store now!

Smart menu X-Cart add-on
Featured Products Slide Show X-Cart add-on
"What's New?" FREE X-Cart add-on
Reply With Quote
  #6  
Old 10-24-2008, 07:48 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default 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.
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:54 AM.

   

 
X-Cart forums © 2001-2020