function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Collaborative eCollaborative e 

Problems Adding script check for browser type

I am trying to add a script to adjust CSS depending on which version of IE the site visitor is using. My code for this script is in the <head> tag:

 

   <!--[if IE 7]>
        <apex:stylesheet value="{!URLFOR($Resource.styles3, 'styles.ie7.css')}"/>
    <![endif]-->
    <!--[if IE 6]>
        <apex:stylesheet value="{!URLFOR($Resource.styles3, 'styles.ie6.css')}"/>
        <apex:includeScript value="{!$Resource.supersleight}"/>
        <apex:includeScript value="{!URLFOR($Resource.styles3, 'supersleight_internal.js')}"/>
    <![endif]-->

 It isn't working. When I view code in the browser window I get the folling where the script should be:

 

<!--**********
*********************************************************************************
*************-->
    <!--**********
*********************************************************************************
***************************************************************
**********************************************************************************************
*************-->

 What am I doing wrong?

 

 

Thanks for the help.