I ran into something strange with images, IE, and include files, too. My directory looks like this:
root
root/include
root/menu
root/images
I have a file, menu/coffee.php which includes include/jsfunc.php.
jsfunc contained the following javascript function:
function showLogo()
{
parent.banner.document.logo.src='../images/logo.gif';
}
It worked fine in Netscape, but not IE.
I added this code:
if (browser_get_agent()=='IE')
$imgpath="images";
else
$imgpath="../images";
and changed the line to this:
parent.banner.document.logo.src='<?php echo $imgpath;?>/logo.gif'
Now it works in both browsers.
I have no idea why this happens, I only know it does.
HTH,
Beth