I have an aspx page where I'm trying to set the FavIcon using the conditional html statements, here's what I have so far:
IE 7 & 8 support 32x32 icons, which is what jb32.ico is. IE 6 supports 16x16 icons, which is what jb16.ico is and older IE just picks up the icon file in the root directory and uses that, which is why jb16.ico is in the root, not the images folder.
The icon's showing in IE fine.
FF and other browsers use a different Link Rel call to set the icon, which is where the [else] comes in, but in FF 3.5 (and I can test this in FF 3.0.11 tomorrow) the icon doesn't show in the title bar when it's in the [else], however it does when it's outside of the conditional tag altogether, meaning this works fine in FF 3.5:
Is there something I'm doing wrong? Anyone have any suggestions
VB.NET:
<head runat="server">
<!--[if gte IE 7]>
<link rel="SHORTCUT ICON" href="/Images/jb32.ico"/>
<![elseif lte IE 6]>
<link rel="SHORTCUT ICON" href="/jb16.ico"/>
<![else]>
<link rel="icon" type="image/vnd.microsoft.icon" href="/Images/jb32.ico" />
<![endif]-->
</head>
The icon's showing in IE fine.
FF and other browsers use a different Link Rel call to set the icon, which is where the [else] comes in, but in FF 3.5 (and I can test this in FF 3.0.11 tomorrow) the icon doesn't show in the title bar when it's in the [else], however it does when it's outside of the conditional tag altogether, meaning this works fine in FF 3.5:
VB.NET:
<head runat="server">
<link rel="icon" type="image/vnd.microsoft.icon" href="/Images/jb32.ico" />
</head>