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
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
[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
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