I have a script that works fine in IE 9+ and in all other browsers. But in IE 8 or lower there are visual errors. I can fix these visual errors by changing some animation effects for IE 8 and below. For this, I need to have two scripts on my page. One for IE 9+, Firefox, Chrome, Safari, and another for IE 8 and below.
Here is what I tried:
// First the Script that runs for non-IE browsers.
// Now for the Script for IE 8
The first question, and most importantly, when trying this does not work. IE starts acting crazy and the script doesn't work at all. If I delete the first script and leave the second, it will work without problems. It would seem that it is <!--[if !IE]><!-->working incorrectly.
Second question: <!--[if !IE]><!-->can I target only IE 8 and below?