Thread: Quick question
View Single Post
  #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