Return to Snippet

Revision: 8976
at October 22, 2008 13:09 by DesTincT


Updated Code
$(document).ready(function(){

 if (navigator.appVersion.indexOf("Mac")!=-1) {
  if($.browser.mozilla){ //if mozilla

  $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ff_mac.css" />');

  }
  if($.browser.msie){ //if IE

   $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ie_mac.css" />');

  }

  //...etc
 }
						   
});

Revision: 8975
at October 16, 2008 10:33 by DesTincT


Initial Code
$(document).ready(function(){

 if (navigator.appVersion.indexOf("Mac")!=-1) {
  if($.browser.mozilla){ //if mozilla

  $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ff_mac.css" />');

  }
  if($.browser.msie){ //if IE

   $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ff_mac.css" />');

  }

  //...etc
 }
						   
});

Initial URL

                                

Initial Description
setting additional css file for browsers under MacOS with JQuery

Initial Title
JQuery. Setting css for browsers under MacOS

Initial Tags
css, js, mac, jquery

Initial Language
JavaScript