RE: [WSG] obj.style.backgroundImage

2006-10-05 Thread michael.brockington
Since no-one else has replied, perhaps I may ask why you would want to do this? Mike -Original Message- From: listdad@webstandardsgroup.org [mailto:[EMAIL PROTECTED] On Behalf Of Thierry Koblentz Sent: Wednesday, October 04, 2006 2:05 AM I'm curious to know if anyone here have

Re: [WSG] obj.style.backgroundImage

2006-10-05 Thread Thierry Koblentz
Christian Heilmann wrote: I'm curious to know if anyone here have successfully applied a background image to an IMG element through scripting? Have you tried to set the image to block first? Also, just do obj.style.background = 'url(bla.gif) #fff no-repeat' instead of backgroundImage

Re: [WSG] obj.style.backgroundImage

2006-10-05 Thread Thierry Koblentz
[EMAIL PROTECTED] wrote: Since no-one else has replied, perhaps I may ask why you would want to do this? I'm working on a variation of this: http://www.tjkdesign.com/articles/png_overlay_with_no_extra_markup.asp --- Regards, Thierry | www.TJKDesign.com

Re: [WSG] obj.style.backgroundImage

2006-10-05 Thread Al Sparber
From: Thierry Koblentz [EMAIL PROTECTED] document.getElementById('column1').style.backgroundImage=url('c1.jpg'); We usually don't use that method (haven't had a need to yet). We often do similar tasks by changing classes. That's what I do this with pure CSS solutions [1], but when JS is