You need to sign in to do that
Don't have an account?
Collaborative 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.
Check this thread i think it will help you:
http://community.salesforce.com/t5/Visualforce-Development/URGENT-HTML-quot-IF-STATEMENT-quot-IN-VISUALFORCE/m-p/160079
Ignacio.