469,279 Members | 2,261 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,279 developers. It's quick & easy.

patch not working as example

162 100+
I'm using the code found here. I am trying to insert some new code as per the instructions here. I have not been successful. The code i think I'm supposed to change is,

Expand|Select|Wrap|Line Numbers
  1. IE7.CSS.addFix(/background(-image)?\s*:\s*([^};]*)?url\(([^\)]+)\)([^;}]*)?/,function(a,b,c,d,f){d=cC(d);return bi.test(d)?"filter:"+i(bx,d,"crop")+";zoom:1;background"+(b||"")+":"+(c||"")+"none"+(f||""):a});
And its updated form should be like,

Expand|Select|Wrap|Line Numbers
  1.     IE7.CSS.addFix(/background(-image)?\s*:\s*([^};]*)?url\(([^\)]+)\)([^;}]*)?/,function(match, $1, $2, url, $4) {
  2.         url = getString(url);
  3.  
  4.         // Hack for bg repeating support
  5.         var repeatExp = new RegExp('repeat-[xy]','i');
  6.         var scalingMethod = 'image'; // or crop
  7.         var overflow = '';
  8.         if (repeatExp.test($4)) {
  9.             var scalingMethod = 'scale';
  10.             overflow = 'overflow:hidden;';
  11.         }
  12.  
  13.         return PNG.test(url) ? overflow + "filter:" + format(PNG_FILTER, url, scalingMethod) + ";zoom:1;background" + ($1||"") + ":" + ($2||"") + "none" + ($4||"") : match;
  14.  
  15.     });
  16.  
Why is it not working? Thanks much.
Jan 27 '09 #1
1 1005
acoder
16,027 Expert Mod 8TB
If you check the status, it's new, not fixed.
Jan 28 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Olivier Ishacian | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
5 posts views Thread by djoefish | last post: by
reply views Thread by Daniel Nogradi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.