Skip navigation
Currently Being Moderated

Conditional Statements in IE6 error?

Apr 23, 2012 11:37 PM

http://mcec.my/

 

I have added a conditional statement which only target IE6 to render specific css and javascript,

all other browsers, IE7 and above will use back the general set of css and js...

However when I preview in IE 6 and IE7 i got the conditional statement render out :

 

////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Malaysia-China Entrepreneur Conference 2012</title>

 

 

<!--[if !IE6]>-->

          <link href="include/reset.css" rel="stylesheet" type="text/css" />

    <link href="include/style.css" rel="stylesheet" type="text/css" />

   

    <link rel="stylesheet" href="include/coin-slider-styles.css" type="text/css" />

    <script type="text/javascript" src="include/jquery-1.7.2.min.js"></script>

    <script type="text/javascript" src="include/coin-slider.min.js"></script>

   

    <script type="text/javascript" src="include/bw-menu.js"></script>

<!--<![end if]>-->

 

 

<!--[if gte IE7]>

    <link href="include/reset.css" rel="stylesheet" type="text/css" />

    <link href="include/style.css" rel="stylesheet" type="text/css" />

   

    <link rel="stylesheet" href="include/coin-slider-styles.css" type="text/css" />

    <script type="text/javascript" src="include/jquery-1.7.2.min.js"></script>

    <script type="text/javascript" src="include/coin-slider.min.js"></script>

   

    <script type="text/javascript" src="include/bw-menu.js"></script>

<![end if]>-->

 

 

<!--[if lte IE6]>

          <link href="include/reset.css" rel="stylesheet" type="text/css" />

    <link href="include/style.css" rel="stylesheet" type="text/css" />

   

    <link rel="stylesheet" href="include/coin-slider-styles.css" type="text/css" />

    <script type="text/javascript" src="include/jquery-1.7.2.min.js"></script>

    <script type="text/javascript" src="include/coin-slider.min.js"></script>

   

    <script type="text/javascript" src="include/bw-menu.js"></script>

   

          <link href="include/ie6PNGFix.css" rel="stylesheet" type="text/css" />

<![end if]>-->

 

 

</head>

////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////

 

23-04-2012 14-32-40.jpg

 

Where did I gone wrong? Thanks for the help

 
Replies
  • Currently Being Moderated
    Apr 24, 2012 1:10 AM   in reply to vincentccw

    All the IE comments around your alternative css/js links are a bit mangled...try the below:

     

    <!--[if !IE 6]>

        <link href="include/reset.css" rel="stylesheet" type="text/css" />

        <link href="include/style.css" rel="stylesheet" type="text/css" />

       

        <link rel="stylesheet" href="include/coin-slider-styles.css" type="text/css" />

        <script type="text/javascript" src="include/jquery-1.7.2.min.js"></script>

     

        <script type="text/javascript" src="include/coin-slider.min.js"></script>

       

        <script type="text/javascript" src="include/bw-menu.js"></script>

    <![endif]-->

     

    <!--[if gte IE 7]>

        <link href="include/reset.css" rel="stylesheet" type="text/css" />

        <link href="include/style.css" rel="stylesheet" type="text/css" />

       

        <link rel="stylesheet" href="include/coin-slider-styles.css" type="text/css" />

        <script type="text/javascript" src="include/jquery-1.7.2.min.js"></script>

        <script type="text/javascript" src="include/coin-slider.min.js"></script>

       

        <script type="text/javascript" src="include/bw-menu.js"></script>

    <![endif]-->

     

     

    <!--[if lte IE 6]>

        <link href="include/reset.css" rel="stylesheet" type="text/css" />

        <link href="include/style.css" rel="stylesheet" type="text/css" />

       

        <link rel="stylesheet" href="include/coin-slider-styles.css" type="text/css" />

        <script type="text/javascript" src="include/jquery-1.7.2.min.js"></script>

        <script type="text/javascript" src="include/coin-slider.min.js"></script>

       

        <script type="text/javascript" src="include/bw-menu.js"></script>

       

        <link href="include/ie6PNGFix.css" rel="stylesheet" type="text/css" />

    <![endif]-->

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points