This goes anywhere at the top of the page, just once, as long as it's before you use the next bit:
code:
<?php
$ua=$_SERVER['HTTP_USER_AGENT'];
if(strstr($ua,'MSIE 2') OR strstr($ua,'MSIE 3') OR strstr($ua,'MSIE 4') OR strstr($ua,'MSIE 5') OR strstr($ua,'MSIE 6')) {
$badie=TRUE;
}
else {
$badie=FALSE;
}
?>
This bit goes any place that you want different code for Internet Explorer, as many times as you like:
code:
<?php
if($badie==FALSE) {
?>
<!-- normal html here -->
<?php
}
else {
?>
<!-- special html for IE here -->
<?php
}
?>
I still think that you should the original, transparent image all the time, and use the JavaScript fix to have it work properly in Internet Explorer (even Microsoft does it this way).