Re: [jQuery] PNG Fix and the browser sniffer

2007-03-23 Thread Robert O'Rourke
Olaf Bosch wrote: Robert O'Rourke schrieb: The intention is to slice up that massive background image on the fly which is easy to do with the cms I'm using, I am going to have a set of images for choosing the big background image or for getting rid of it altogether down one side so I

Re: [jQuery] PNG Fix and the browser sniffer

2007-03-22 Thread Benjamin Sterling
Rob, I would actually put if ($.browser.msie $.browser.version.number() 7) { before the return. Not sure if that will help. Do you have an example page we can look at. this is some code I am using on a site that works fine for background images that don't repeat. -- Benjamin Sterling

Re: [jQuery] PNG Fix and the browser sniffer

2007-03-22 Thread Benjamin Sterling
Would have been nice if I actually posted the code: jQuery.fn.pngFixer = function(){ try{ if (navigator.appVersion.match(/MSIE [0-6]\./)) { $(this).each(function () { if (this.currentStyle.backgroundImage != 'none') { var image =

Re: [jQuery] PNG Fix and the browser sniffer

2007-03-22 Thread Robert O'Rourke
Benjamin Sterling wrote: Would have been nice if I actually posted the code: ... -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com Cheers Ben, Unfortunately with that code now I'm getting zero transparency... The sites still kinda ropey and I can't design

Re: [jQuery] PNG Fix and the browser sniffer

2007-03-22 Thread Robert O'Rourke
Olaf Bosch wrote: Robert O'Rourke schrieb: It's on the dev server but it's ok to have a look, I need to get the logo and the 'as seen on 4' images to be filtered in IE=6. Only 2 pngs! I really appreciate your help and getting back to me so quickly. For what you hacking around.

Re: [jQuery] PNG Fix and the browser sniffer

2007-03-22 Thread Olaf Bosch
Robert O'Rourke schrieb: The intention is to slice up that massive background image on the fly which is easy to do with the cms I'm using, I am going to have a set of images for choosing the big background image or for getting rid of it altogether down one side so I need the png support...