I am creating dynamically an <img> element in Javascript. I set the
"src" attribute to a default image file path i.e.
'src="images/defaulticon.jpg"' and I would like to be able to override
that path using CSS. I checked my CSS books and the list previous posts
and could not find anything. I tried img {background:
url('images/myicon.jpg') and got the image in the background but the
image with a red cross is also surimposed.

Basically I would like to see the myicon.jpg and not defaulticon.jpg in
a configuration like this:

    img {
    src: url("images/calendar.gif");
    }

<img style="vertical-align: middle;" src="images/defaulticon.gif"
id="calendarContainer_Icon">

Thanks

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to