witam,
mam pewny kod jquery wstawiony w <head>, ale cos mi sie wydaje, ze nie lapie on czesci img, ktore sa w tabeli, w komorce.
Jak mozna zaimplementowac ten kod do komorki?
<script type="text/javascript"> $(document).ready(function(){
var i;
for (i in document.images) {
if (document.images[i].src) {
var imgSrc = document.images[i].src;
if (imgSrc.substr(imgSrc.length-4) === '.png' || imgSrc.substr(imgSrc.length-4) === '.PNG') {
document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='crop',src='" + imgSrc + "')";
}
}
}
});
<table width="964" height="516" border="0" cellpadding="0" cellspacing="0"> <img src="images/a_normal_01.png" width="371" height="516" alt=""></td> <td style="background-image:url(images/a_normal_02.png); width:461px; height:516px;">
<a href="#" id="a_normal_003_a"></a>
<a href="#" id="a_normal_002_a"></a>
<a href="#" id="a_normal_001_a"></a> <img src="images/a_normal_03.png" width="132" height="516" alt=""></td>