0

My code does not work in certain versions of IE and I want to include a conditional comment that includes a different navigation file so that links to pure html5 content wont be there. is there a way to remove the include of the menu.php and then i can just include the IE menu.php?

I know how to do the conditional comment, and include, just looking for a way to do a remove file.

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by Aiedail
0

IE menu.php?

function ae_detect_ie()
{
    if (isset($_SERVER['HTTP_USER_AGENT']) && 
    (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
        return true;
    else
        return false;
}
if (ae_detect_ie) 
{
    include iemenu.php;
}
else
{
    include menu.php;
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.