Al Sparber wrote:
> From: "Thierry Koblentz" <[EMAIL PROTECTED]>
>
>> I'm curious to know if anyone here have successfully applied a
>> background
>> image to an IMG element through scripting?
>> I can apply a background color but I can't make
>> "style.backgroundImage"
>> work.
>
> 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 used I
just don't see a reason for binding the images to the stylesheet.

[1] http://www.tjkdesign.com/articles/css%20pop%20ups/6.asp

---
Regards,
Thierry | www.TJKDesign.com




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to