Posted By

DesTincT on 10/16/08


Tagged

css js mac jquery MacOS


Versions (?)

JQuery. Setting css for browsers under MacOS


 / Published in: JavaScript
 

setting additional css file for browsers under MacOS with JQuery

  1. $(document).ready(function(){
  2.  
  3. if (navigator.appVersion.indexOf("Mac")!=-1) {
  4. if($.browser.mozilla){ //if mozilla
  5.  
  6. $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ff_mac.css" />');
  7.  
  8. }
  9. if($.browser.msie){ //if IE
  10.  
  11. $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ie_mac.css" />');
  12.  
  13. }
  14.  
  15. //...etc
  16. }
  17.  
  18. });

Report this snippet  

You need to login to post a comment.