Below is an example of my problem.
The page initially displays a header button and a div containing a price button which is built using two transparent pngs. The trasparent PNGs use the filter hack and it works fine on the initial page load.
Now if you mouseover the header icon the openDiv() function is called which basically uses javascript to construct another button with the same transparent pngs, and it replaces the first button with the second one. The problem is that the transparent pngs which the button is made of don't appear at all in IE6 !! It works fine in IE7 and firefox. Maybe the filter only gets applied when the page is initially loaded, I don't know. I was hoping someone here might know ?
Any ideas ?
Cheers
Colm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" href="test_image.css" type="text/css" charset="utf-8"/>
<script type="text/javascript">
function openDiv()
{
var str = document.getElementById("button_template").innerHTML;
var totStr = "";
for (var k=0; k<1 ;k++ )
{
totStr += "<div style='display:block;padding-bottom:10px;color:green'>Colm "+str+"</div>";
}
document.getElementById('displayArea').innerHTML = totStr;
}
</script>
</head>
<body>
<table id="mainMenu">
<tr>
<td class="header_icons">
<span>
<img onmouseover="openDiv()" height="57px" width="55px" src="games_active.png"/>
</span>
</td>
</tr>
</table>
<div id="displayArea" class="testStyle">
<div style='display:block;padding-bottom:10px;color:green'>TESTTEST <div class="priceButton"><img src="infopoint.png" alt="play bar1" style="behavior: url(pngbehavior.htc);" class="priceButtonImage" width="20px" height="13px"></img><div class="priceButtonBg"><span class="mediaPrice">$100.00</span></div><img class="priceButtonRight" src="button_play_right.png" style="behavior: url(pngbehavior.htc);" width="6px" height="13px" alt="play bar"></img></div>
</div>
<div id="button_template" style="display:none">
<div class="priceButton">
<img id="testOpacity" src="infopoint.png" alt="play bar1" style="behavior: url(pngbehavior.htc);" class="priceButtonImage" width="20px" height="13px"></img><div class="priceButtonBg"><span class="mediaPrice">$10000.00</span></div><img class="priceButtonRight" src="button_play_right.png" style="behavior: url(pngbehavior.htc);" width="6px" height="13px" alt="play bar"></img>
</div>
</div>
</body>
</html>