I have some font problems in Internet Explorer, so I am trying to apply font-family
through JavaScript. It works, but the JavaScript code runs for every browser.
How do I run JavaScript code only on Internet Explorer?
This my code.
drupal_add_js('sites/all/themes/blogbuzz/js/cufon-yui.js');
drupal_add_js('sites/all/themes/blogbuzz/js/Helvetica_CE_35_Thin_100.font.js');
drupal_add_js('(function ($) {
$(document).ready(function() {
Cufon.replace("#content-header");
Cufon.replace("#client_tle");
Cufon.replace("#block-block-16");
});
})(jQuery)', "inline");