Z
zik
I've got a problem creating dinamically a img object that should show
a transparency in IE.
This is the object that I would like to create dinamically using
javascript:
<img class="fixMe" style="background:url(immagine.jpg);" alt=" "
src="diag.png" />
(the css class to fix the IE bug is:
.fixMe
{
filterrogidXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sr
c='transIE.png');
padding-top:100px;
}
)
The following is the javascript code use to generate dinamically the
previous html code:
var img_banner = document.createElement('img');
img_banner.className = "fixMe";
img_banner.style.background = "url(immagine.jpg)";
img_banner.src = "diag.png";
img_banner.alt = "";
If I insert the previous html static code into the page everiting
works fine,
but with javascript don't work...Why? There is something wrong?
Thank you.
a transparency in IE.
This is the object that I would like to create dinamically using
javascript:
<img class="fixMe" style="background:url(immagine.jpg);" alt=" "
src="diag.png" />
(the css class to fix the IE bug is:
.fixMe
{
filterrogidXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sr
c='transIE.png');
padding-top:100px;
}
)
The following is the javascript code use to generate dinamically the
previous html code:
var img_banner = document.createElement('img');
img_banner.className = "fixMe";
img_banner.style.background = "url(immagine.jpg)";
img_banner.src = "diag.png";
img_banner.alt = "";
If I insert the previous html static code into the page everiting
works fine,
but with javascript don't work...Why? There is something wrong?
Thank you.